mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01: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