This commit is contained in:
Bastian Wagner
2024-09-13 22:20:27 +02:00
parent 00d5498e00
commit ed6b2b9c45
11 changed files with 70 additions and 18 deletions

View File

@@ -56,7 +56,10 @@ export class AuthService {
username: payload.username,
externalId: payload.id,
});
} else {
user.lastLogin = new Date();
}
if (!user.isActive) {
return resolve(null);
}
@@ -87,6 +90,8 @@ export class AuthService {
};
user.refreshToken = this.jwt.sign(rPay, { expiresIn: '1w' });
user.lastLogin = new Date();
this.userRepo.save(user);
}
private createAuthCodeFormData(