enhance: permission handling

This commit is contained in:
Julian Krauser 2025-05-07 09:05:36 +02:00
parent 9dd7686b67
commit 56484020d8
4 changed files with 49 additions and 56 deletions

View file

@ -41,8 +41,6 @@ export async function login(req: Request, res: Response): Promise<any> {
let { id } = await UserService.getByUsername(username);
let { secret, routine } = await UserService.getUserSecretAndRoutine(id);
console.log(secret, passedSecret);
let valid = false;
if (routine == LoginRoutineEnum.totp) {
valid = speakeasy.totp.verify({