Author |
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 28 November 2021 at 8:13am | IP Logged
|
|
|
Hello
Is it possible to add username to log in case of login failure?
Currently aurora only logs "login-failed" without username.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 29 November 2021 at 12:30am | IP Logged
|
|
|
Hmm, the function where it's done only has access to user credentials if authentication was successful. I can think of the following workaround though - in modules/Core/Module.php file, locate the line:
Code:
return $this->Decorator()->SetAuthDataAndGetAuthToken($aAuthData, $Language, $SignMe); |
|
|
and add the following line right before it:
Code:
\Aurora\System\Api::LogEvent('logging in as user '.$Login, self::GetName()); |
|
|
That way, a separate log record will be added, and it will contain the username / email address user has attempted to log in with.
Hope this helps.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
Joined: 28 June 2020
Online Status: Offline Posts: 163
|
Posted: 07 December 2021 at 12:14pm | IP Logged
|
|
|
Yes, this works OK
Do you plan to include it to release?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 07 December 2021 at 11:30pm | IP Logged
|
|
|
That was just a quick hack, but I will suggest the developers to implement something like that in the regular release.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|