Logging around accoung lock/unlocking

This commit is contained in:
Bryan Ashby 2018-11-23 11:44:46 -07:00
parent f0e7b46a2f
commit a4823c0c4a
3 changed files with 11 additions and 3 deletions

View file

@ -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 */ } );
}