Anonymization of username in invalid login logs

Hello,


I'm wondering if the anonymization used in the error logs is configurable. 

At the moment, you are able to see only the first 4 characters of a username. I would like to see the entire value.

Did anybody stumbled across this up until now?


Thanks in advance,

Lorena

Solution

Hi Sabou,

Unfortunately, it doesn't appear to be configurable. This can be checked by opening the User_Login action from the Users module. A local variable named ShortUsername is used for these logging messages, and the first four characters of the username are hardcoded:

The User_Login logic throws an exception in case of login failure, so you could in theory log this yourself whenever User_Login is invoked.

Solution