login
This commit is contained in:
@@ -86,7 +86,7 @@ export class PasswordService {
|
||||
const tokenHash = hashToken(token, this.tokenSecret);
|
||||
const record = await this.resetTokens.findOne({ where: { tokenHash, consumedAt: IsNull() } });
|
||||
if (!record || record.expiresAt.getTime() < Date.now()) {
|
||||
throw new BadRequestException('Der Reset-Link ist ungueltig oder abgelaufen.');
|
||||
throw new BadRequestException('Der Reset-Link ist ungültig oder abgelaufen.');
|
||||
}
|
||||
|
||||
await this.lldap.setPassword(record.username, newPassword);
|
||||
|
||||
Reference in New Issue
Block a user