mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
genSecret don't need await
This commit is contained in:
parent
16b44001e7
commit
23714ab688
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ exports.entryPage = "dashboard";
|
|||
]);
|
||||
|
||||
if (user.twofa_status == 0) {
|
||||
let newSecret = await genSecret();
|
||||
let newSecret = genSecret();
|
||||
let encodedSecret = base32.encode(newSecret);
|
||||
|
||||
// Google authenticator doesn't like equal signs
|
||||
|
|
Loading…
Reference in a new issue