summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorBrian Neel <brian@gitlab.com>2017-09-29 17:34:47 -0400
committerBrian Neel <brian@gitlab.com>2017-09-29 17:34:47 -0400
commit7dac9624bc19019f7432cf12ac8713a5dad03b69 (patch)
treecd33f875acc998d1b8893a26f230d61c601cf78c /app/models/user.rb
parent66d9d258ad8ab168018b5fb627e59c2385d5fdc0 (diff)
downloadgitlab-ce-7dac9624bc19019f7432cf12ac8713a5dad03b69.tar.gz
Remove lock reason and add guard clause
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 195490c95c7..cbfd07d0098 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1063,7 +1063,7 @@ class User < ActiveRecord::Base
# override, from Devise
def lock_access!
- Gitlab::AppLogger.info("Account Locked: username=#{username} reason=invalid_login_attempts")
+ Gitlab::AppLogger.info("Account Locked: username=#{username}")
super
end