enhance: permission handling
This commit is contained in:
parent
9dd7686b67
commit
56484020d8
4 changed files with 49 additions and 56 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue