ws: send auth-deny and reload page
This commit is contained in:
parent
67019e3aba
commit
658b678d80
@ -98,7 +98,9 @@ export class LdapTfaController extends LdapController {
|
||||
status: HttpStatus.OK,
|
||||
})
|
||||
@UsePipes(new ValidationPipe({ transform: true }))
|
||||
async telegramReject(@Query() _query: TelegramDto, @Res() reply: FastifyReply) {
|
||||
async telegramReject(@Query() query: TelegramDto, @Res() reply: FastifyReply) {
|
||||
this.ldapTfaGateway.notify('auth-deny', query);
|
||||
|
||||
return reply.status(200).send({ success: true });
|
||||
}
|
||||
|
||||
|
||||
@ -87,6 +87,11 @@ export function useTelegramConfirm() {
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
socket.on('auth-deny', () => {
|
||||
socket.off('connect');
|
||||
window.location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
return () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user