mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
Logging around accoung lock/unlocking
This commit is contained in:
parent
f0e7b46a2f
commit
a4823c0c4a
3 changed files with 11 additions and 3 deletions
|
@ -288,6 +288,10 @@ class WebPasswordReset {
|
|||
user.removeProperties([ UserProps.EmailPwResetToken, UserProps.EmailPwResetTokenTs ]);
|
||||
|
||||
if(true === _.get(config, 'users.unlockAtEmailPwReset')) {
|
||||
Log.info(
|
||||
{ username : user.username, userId : user.userId },
|
||||
'Remove any lock on account due to password reset policy'
|
||||
);
|
||||
user.unlockAccount( () => { /* dummy */ } );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue