Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
birger
users
Commits
2fac131c
Commit
2fac131c
authored
Oct 03, 2018
by
o@immerda.ch
Browse files
fix exception on empty credentials
parent
4f00878b
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/sessions_controller.rb
View file @
2fac131c
...
...
@@ -82,7 +82,7 @@ class SessionsController < ApplicationController
return
login_failed
end
if
login_user_id
.
empty
?
||
params
[
:password
].
empty
?
if
!
login_user_id
.
present
?
||
!
params
[
:password
].
present
?
return
new_login_session
end
...
...
Write
Preview
Supports
Markdown
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