Browse Source

genSecret don't need `await`

pull/641/head
Louis Lam 3 years ago
parent
commit
23714ab688
  1. 2
      server/server.js

2
server/server.js

@ -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…
Cancel
Save