login
This commit is contained in:
@@ -75,7 +75,7 @@ export class RegistrationService {
|
||||
const tokenHash = hashToken(token, this.tokenSecret);
|
||||
const tokenRecord = await this.emailTokens.findOne({ where: { tokenHash, consumedAt: IsNull() } });
|
||||
if (!tokenRecord || tokenRecord.expiresAt.getTime() < Date.now()) {
|
||||
throw new BadRequestException('Der Bestaetigungslink ist ungueltig oder abgelaufen.');
|
||||
throw new BadRequestException('Der Bestaetigungslink ist ungültig oder abgelaufen.');
|
||||
}
|
||||
|
||||
const registration = await this.registrations.findOneByOrFail({ id: tokenRecord.registrationId });
|
||||
|
||||
Reference in New Issue
Block a user