diff options
author | Brian Neel <brian@gitlab.com> | 2017-09-29 17:34:47 -0400 |
---|---|---|
committer | Brian Neel <brian@gitlab.com> | 2017-09-29 17:34:47 -0400 |
commit | 7dac9624bc19019f7432cf12ac8713a5dad03b69 (patch) | |
tree | cd33f875acc998d1b8893a26f230d61c601cf78c /app/models/user.rb | |
parent | 66d9d258ad8ab168018b5fb627e59c2385d5fdc0 (diff) | |
download | gitlab-ce-7dac9624bc19019f7432cf12ac8713a5dad03b69.tar.gz |
Remove lock reason and add guard clause
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
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 |