login
This commit is contained in:
@@ -15,7 +15,7 @@ export class AuthService {
|
||||
const valid = await this.ldapAuth.verifyPassword(username, password);
|
||||
if (!valid) {
|
||||
await this.audit.record({ type: 'auth.login_failed', username, ipAddress, userAgent });
|
||||
throw new UnauthorizedException('Ungueltige Zugangsdaten.');
|
||||
throw new UnauthorizedException('Ungültige Zugangsdaten.');
|
||||
}
|
||||
|
||||
await this.audit.record({ type: 'auth.login_success', username, ipAddress, userAgent });
|
||||
|
||||
@@ -18,7 +18,7 @@ export class JwtAuthGuard implements CanActivate {
|
||||
request.user = await this.jwt.verifyAsync<RequestUser>(token);
|
||||
return true;
|
||||
} catch {
|
||||
throw new UnauthorizedException('Session ist ungueltig oder abgelaufen.');
|
||||
throw new UnauthorizedException('Session ist ungültig oder abgelaufen.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user