Commit bdee1119 authored by Cool Fire's avatar Cool Fire

Make username lookup case insensitive

parent ec416966
Pipeline #1960 failed with stage
in 2 minutes and 13 seconds
......@@ -152,7 +152,7 @@ class Manager2Api < Sinatra::Base
# Check if user exists
def user_check(username)
data = git_get
data.key? username
data.keys.map { |u| u.downcase }.include? username.downcase
end
# rubocop:enable Metrics/BlockLength
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment