Commit c44541a5 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve readability and move custom matchers to better place

parent ede8c0ce
......@@ -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!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment