Improve readability and move custom matchers to better place

This commit is contained in:
Grzegorz Bizon 2018-07-27 12:29:49 +02:00
parent ede8c0ced4
commit c44541a506
2 changed files with 1 additions and 3 deletions

View File

@ -32,9 +32,7 @@ module Gitlab
self.class.user_password_invalid_counter_increment!
end
if @user.present? && @user.blocked?
self.class.user_blocked_counter_increment!
end
self.class.user_blocked_counter_increment! if @user&.blocked?
end
def user_authenticated!