mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	fix: 🐛 fix mfa get option error
This commit is contained in:
		
							parent
							
								
									6a3c44f866
								
							
						
					
					
						commit
						170375fe04
					
				@ -3,8 +3,8 @@ import options from './options.js';
 | 
			
		||||
import totpEncryptionService from './encryption/totp_encryption.js';
 | 
			
		||||
 | 
			
		||||
function isTotpEnabled(): boolean {
 | 
			
		||||
    return options.getOption('mfaEnabled') === "true" &&
 | 
			
		||||
        options.getOption('mfaMethod') === "totp" &&
 | 
			
		||||
    return options.getOptionOrNull('mfaEnabled') === "true" &&
 | 
			
		||||
        options.getOptionOrNull('mfaMethod') === "totp" &&
 | 
			
		||||
        totpEncryptionService.isTotpSecretSet();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user