genSecret don't need `await`

pull/641/head
Louis Lam 2021-10-18 17:37:11 +08:00
parent 16b44001e7
commit 23714ab688
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ exports.entryPage = "dashboard";
]); ]);
if (user.twofa_status == 0) { if (user.twofa_status == 0) {
let newSecret = await genSecret(); let newSecret = genSecret();
let encodedSecret = base32.encode(newSecret); let encodedSecret = base32.encode(newSecret);
// Google authenticator doesn't like equal signs // Google authenticator doesn't like equal signs