diff options
author | Brian Neel <brian@gitlab.com> | 2017-09-27 21:53:15 -0400 |
---|---|---|
committer | Brian Neel <brian@gitlab.com> | 2017-09-27 21:53:15 -0400 |
commit | d13349af47295065b8a658b0d74499c59ff3ad4b (patch) | |
tree | e31352ad0a5bd1257eec9225b178ef503f89dc6c | |
parent | 8fa87ea3fb862bdae624aec360c80b12cda3905c (diff) | |
download | gitlab-ce-d13349af47295065b8a658b0d74499c59ff3ad4b.tar.gz |
Merge conflict resolution
-rw-r--r-- | app/models/user.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 9fc6d2806c3..195490c95c7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1061,6 +1061,12 @@ class User < ActiveRecord::Base user_synced_attributes_metadata&.read_only?(attribute) end + # override, from Devise + def lock_access! + Gitlab::AppLogger.info("Account Locked: username=#{username} reason=invalid_login_attempts") + super + end + protected # override, from Devise::Validatable @@ -1069,12 +1075,6 @@ class User < ActiveRecord::Base super end - # override, from Devise - def lock_access! - Gitlab::AppLogger.info("Account Locked: username=#{username} reason=invalid_login_attempts") - super - end - private def ci_projects_union |