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';
 | 
					import totpEncryptionService from './encryption/totp_encryption.js';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function isTotpEnabled(): boolean {
 | 
					function isTotpEnabled(): boolean {
 | 
				
			||||||
    return options.getOption('mfaEnabled') === "true" &&
 | 
					    return options.getOptionOrNull('mfaEnabled') === "true" &&
 | 
				
			||||||
        options.getOption('mfaMethod') === "totp" &&
 | 
					        options.getOptionOrNull('mfaMethod') === "totp" &&
 | 
				
			||||||
        totpEncryptionService.isTotpSecretSet();
 | 
					        totpEncryptionService.isTotpSecretSet();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user