Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
d57fea4f
Commit
d57fea4f
authored
Oct 05, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor backport from EE
parent
905d3ed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
app/controllers/sessions_controller.rb
app/controllers/sessions_controller.rb
+1
-3
No files found.
app/controllers/sessions_controller.rb
View file @
d57fea4f
...
@@ -13,7 +13,7 @@ class SessionsController < Devise::SessionsController
...
@@ -13,7 +13,7 @@ class SessionsController < Devise::SessionsController
before_action
:auto_sign_in_with_provider
,
only:
[
:new
]
before_action
:auto_sign_in_with_provider
,
only:
[
:new
]
before_action
:load_recaptcha
before_action
:load_recaptcha
after_action
:log_failed_login
,
only:
[
:new
]
after_action
:log_failed_login
,
only:
[
:new
]
,
if: :failed_login?
def
new
def
new
set_minimum_password_length
set_minimum_password_length
...
@@ -46,8 +46,6 @@ class SessionsController < Devise::SessionsController
...
@@ -46,8 +46,6 @@ class SessionsController < Devise::SessionsController
private
private
def
log_failed_login
def
log_failed_login
return
unless
failed_login?
Gitlab
::
AppLogger
.
info
(
"Failed Login: username=
#{
user_params
[
:login
]
}
ip=
#{
request
.
remote_ip
}
"
)
Gitlab
::
AppLogger
.
info
(
"Failed Login: username=
#{
user_params
[
:login
]
}
ip=
#{
request
.
remote_ip
}
"
)
end
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