Commit d69d0c0f authored by Valery Sizov's avatar Valery Sizov

[CE->EE] fix log_failed_login method

We added the same method in CE side
parent 5f92e4ea
......@@ -3,12 +3,12 @@ module EE
extend ActiveSupport::Concern
prepended do
after_action :log_failed_login, only: :new, if: :failed_login?
after_action :log_failed_login_ee, only: :new, if: :failed_login?
end
private
def log_failed_login
def log_failed_login_ee
::AuditEventService.new(request.filtered_parameters['user']['login'], nil, ip_address: request.remote_ip)
.for_failed_login.unauth_security_event
end
......
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