Browse Source

remove console.logs

pull/1783/head
Bernd Storath 1 week ago
parent
commit
4d0f73df6b
  1. 7
      src/server/database/repositories/user/service.ts

7
src/server/database/repositories/user/service.ts

@ -169,13 +169,8 @@ export class UserService {
secret: txUser.totpKey, secret: txUser.totpKey,
}); });
console.log(txUser.totpKey);
console.log(code);
const valid = totp.validate({ token: code, window: 1 }); const valid = totp.validate({ token: code, window: 1 });
console.log(valid);
if (valid === null) { if (valid === null) {
return { success: false, error: 'INVALID_TOTP_CODE' }; return { success: false, error: 'INVALID_TOTP_CODE' };
} }
@ -213,8 +208,6 @@ export class UserService {
secret: txUser.totpKey, secret: txUser.totpKey,
}); });
console.log({ code, key: txUser.totpKey });
const valid = totp.validate({ token: code, window: 1 }); const valid = totp.validate({ token: code, window: 1 });
if (valid === null) { if (valid === null) {

Loading…
Cancel
Save