fix pass user to submit button
This commit is contained in:
parent
becce3218d
commit
237aeb970f
@ -24,7 +24,9 @@ export class LdapTfaController extends LdapController {
|
||||
audience: 'auth',
|
||||
});
|
||||
|
||||
return reply.setCookie(env.COOKIE_TOKEN_NAME, token, cookieOptions).status(200).send();
|
||||
const user = await this.ldapService.getUser(token);
|
||||
|
||||
return reply.setCookie(env.COOKIE_TOKEN_NAME, token, cookieOptions).status(200).send(user);
|
||||
} catch {
|
||||
throw new HttpException('Unauthorized', HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user