#1 2017-11-14 18:55:35

ramersonw
Member
From: Brazil
Registered: 2015-07-16
Posts: 6

Get Remote IP when authentication fails

As the title....

I'm using OnAuthenticationFailed callback to capture some data when an invalid user/password tries to login. As user is not logged in, I don't have a session to capture the remote IP... Is there another way?

Offline

#2 2017-11-14 19:24:39

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,235
Website

Re: Get Remote IP when authentication fails

You have the headers in the call context, in which you have the remote IP. Check the documentation.

Offline

#3 2017-11-17 12:52:31

ramersonw
Member
From: Brazil
Registered: 2015-07-16
Posts: 6

Re: Get Remote IP when authentication fails

ok. I found it. Thanks.

Offline

Board footer

Powered by FluxBB