This topic is locked
[SOLVED]

Audit not loggin logins but only logout

11/18/2021 10:51:13 AM
ASPRunner.NET General questions
E
erosolmi author

Hi,

my website has audit activated.
It seems fine except logging login events.
Logout events are logged but not login.

I do not see any option to activate auditing for logout and not for login.

Any help?

Thanks
Eros

E
erosolmi author 11/18/2021

Just noticed Failed logins are logged but not correct logins

E
erosolmi author 11/18/2021

SOLVED

In event XVar BeforeProcessLogin(dynamic pageObject)
I had FALSE in callEvent parameter when calling Security.loginAs() function

string password = MVCFunctions.postvalue("password");
string username = MVCFunctions.postvalue("username");

if (Security.checkUsernamePassword(username, password, false))
{
Security.loginAs(username, true);
MVCFunctions.HeaderRedirect("...", "list");
}