Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic Aurora

 AfterLogic Forum : AfterLogic Aurora
Subject Topic: Logging feature Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 136
Posted: 28 November 2021 at 8:13am | IP Logged Quote solkmaaker

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 View solkmaaker's Profile Search for other posts by solkmaaker
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5887
Posted: 29 November 2021 at 12:30am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 136
Posted: 07 December 2021 at 12:14pm | IP Logged Quote solkmaaker

Yes, this works OK
Do you plan to include it to release?
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5887
Posted: 07 December 2021 at 11:30pm | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide