mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	Fixed recovery code refresh bug.
This commit is contained in:
		
							parent
							
								
									9dd185e37e
								
							
						
					
					
						commit
						ede7bbd8ed
					
				| @ -133,6 +133,8 @@ export default class MultiFactorAuthenticationOptions extends OptionsWidget { | |||||||
|         this.$protectedSessionTimeout.val() |         this.$protectedSessionTimeout.val() | ||||||
|       ) |       ) | ||||||
|     ); |     ); | ||||||
|  | 
 | ||||||
|  |     this.displayRecoveryKeys(); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   async setRecoveryKeys() { |   async setRecoveryKeys() { | ||||||
| @ -182,7 +184,6 @@ export default class MultiFactorAuthenticationOptions extends OptionsWidget { | |||||||
|           this.$totpEnabled.prop("checked", result.message); |           this.$totpEnabled.prop("checked", result.message); | ||||||
|           this.$authenticatorCode.prop("disabled", !result.message); |           this.$authenticatorCode.prop("disabled", !result.message); | ||||||
|           this.$generateRecoveryCodeButton.prop("disabled", !result.message); |           this.$generateRecoveryCodeButton.prop("disabled", !result.message); | ||||||
|           this.displayRecoveryKeys(); |  | ||||||
|       } |       } | ||||||
|       else { |       else { | ||||||
|         this.$totpEnabled.prop("checked", false); |         this.$totpEnabled.prop("checked", false); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 chesspro13
						chesspro13