The audit trail the audit table captures the User ID.... but I've noticed that any user that has used auto login it captures their username instead of the User ID.
This only happens with auto login.
Any way to fix this.
Thanks
Audit trail uses username
-
- User
- Posts: 177
Audit trail uses username
-
- User
- Posts: 1171
It seemed that currently autologin always log the user name in the audit trail. You can search for and modify the following codes in the "AutoLoginAsync" method of the "Models/src/AdvancedSecurityBase.cs":
if (valid)
await WriteAuditLogAsync(model.Username, Language.Phrase("AuditTrailAutoLogin"), CurrentUserIpAddress());