Removed the user disableing

ref #40
This commit is contained in:
Nicolai Ort 2020-12-22 11:35:33 +01:00
parent bf4250babd
commit 9458b774ea
2 changed files with 0 additions and 2 deletions

View File

@ -39,7 +39,6 @@ export class CreateResetToken {
found_user.refreshTokenCount = found_user.refreshTokenCount + 1;
found_user.resetRequestedTimestamp = Math.floor(Date.now() / 1000);
found_user.enabled = false;
await getConnectionManager().get().getRepository(User).save(found_user);
//Create the reset

View File

@ -49,7 +49,6 @@ export class ResetPassword {
found_user.refreshTokenCount = found_user.refreshTokenCount + 1;
found_user.password = await argon2.hash(this.password + found_user.uuid);
found_user.enabled = true;
await getConnectionManager().get().getRepository(User).save(found_user);
return "password reset successfull";