mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-16 14:42:31 +08: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 recovery_codes from '../../services/encryption/recovery_codes.js';
|
||||||
import {Request} from 'express';
|
import type { Request } from 'express';
|
||||||
import { randomBytes } from 'crypto';
|
import { randomBytes } from 'crypto';
|
||||||
|
|
||||||
function setRecoveryCodes(req: Request) {
|
function setRecoveryCodes(req: Request) {
|
||||||
@ -14,8 +14,10 @@ function veryifyRecoveryCode(req: Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkForRecoveryKeys() {
|
function checkForRecoveryKeys() {
|
||||||
return {success
|
return {
|
||||||
: true, keysExist: recovery_codes.isRecoveryCodeSet()};
|
success
|
||||||
|
: true, keysExist: recovery_codes.isRecoveryCodeSet()
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateRecoveryCodes() {
|
function generateRecoveryCodes() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user