Unlock User when password has been reset
MODIFY
src/server/rest/service/AuthService.ts
src/server/rest/service/AuthService.ts
@@ -415,7 +415,12 @@ export default class AuthService {
passwordWrongNbrTrials: 0,
passwordResetHash: null,
passwordBlockedUntil: null
- });
+ }
+ );
+ // Unlock
+ if (user.status === UserStatus.LOCKED) {
+ await UserStorage.saveUserStatus(tenantID, user.id, UserStatus.ACTIVE);
+ }
// Log
Logging.logSecurityInfo({
tenantID: tenantID,

Unlock User when password has been reset