mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 21:19:01 +01:00
feat: 🎸 fix recovery_codes error
This commit is contained in:
parent
b320553d18
commit
c8164c81be
@ -1,5 +1,5 @@
|
||||
import recovery_codes from '../../services/encryption/recovery_codes.js';
|
||||
import {Request} from 'express';
|
||||
import type { Request } from 'express';
|
||||
import { randomBytes } from 'crypto';
|
||||
|
||||
function setRecoveryCodes(req: Request) {
|
||||
@ -14,8 +14,10 @@ function veryifyRecoveryCode(req: Request) {
|
||||
}
|
||||
|
||||
function checkForRecoveryKeys() {
|
||||
return {success
|
||||
: true, keysExist: recovery_codes.isRecoveryCodeSet()};
|
||||
return {
|
||||
success
|
||||
: true, keysExist: recovery_codes.isRecoveryCodeSet()
|
||||
};
|
||||
}
|
||||
|
||||
function generateRecoveryCodes() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user