Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
shells
manager2-api
Commits
3fffa217
Commit
3fffa217
authored
Dec 24, 2019
by
Cool Fire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use nicer syntax for case insensitve username lookup
parent
bdee1119
Pipeline
#1961
passed with stage
in 2 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
helpers/users.rb
helpers/users.rb
+1
-1
No files found.
helpers/users.rb
View file @
3fffa217
...
...
@@ -152,7 +152,7 @@ class Manager2Api < Sinatra::Base
# Check if user exists
def
user_check
(
username
)
data
=
git_get
data
.
keys
.
map
{
|
u
|
u
.
downcase
}
.
include?
username
.
downcase
data
.
keys
.
map
(
&
:
downcase
)
.
include?
username
.
downcase
end
# rubocop:enable Metrics/BlockLength
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment