mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-18 17:31:53 +08:00
Merge branch 'develop' into type_sql-transactional
This commit is contained in:
commit
c494cca229
@ -20,16 +20,7 @@ function checkForRecoveryKeys() {
|
||||
}
|
||||
|
||||
function generateRecoveryCodes() {
|
||||
const recoveryKeys = [
|
||||
randomBytes(16).toString('base64'),
|
||||
randomBytes(16).toString('base64'),
|
||||
randomBytes(16).toString('base64'),
|
||||
randomBytes(16).toString('base64'),
|
||||
randomBytes(16).toString('base64'),
|
||||
randomBytes(16).toString('base64'),
|
||||
randomBytes(16).toString('base64'),
|
||||
randomBytes(16).toString('base64')
|
||||
];
|
||||
const recoveryKeys = Array.from({ length: 8 }, () => randomBytes(16).toString('base64'));
|
||||
|
||||
recovery_codes.setRecoveryCodes(recoveryKeys.join(','));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user