From 43cf8a896eeac53f71b11bcd468dd453c4acbcbb Mon Sep 17 00:00:00 2001 From: Adegoke David <64401859+Blazebrain@users.noreply.github.com> Date: Wed, 23 Aug 2023 00:05:48 +0100 Subject: [PATCH] fix: Rotate TOTP Secret (#1056) --- lib/view_model/set_up_2fa_viewmodel.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/view_model/set_up_2fa_viewmodel.dart b/lib/view_model/set_up_2fa_viewmodel.dart index 96a0c4a20..0b4b614ab 100644 --- a/lib/view_model/set_up_2fa_viewmodel.dart +++ b/lib/view_model/set_up_2fa_viewmodel.dart @@ -96,9 +96,7 @@ abstract class Setup2FAViewModelBase with Store { @action void _setBase32SecretKey(String value) { - if (_settingsStore.totpSecretKey == '') { - _settingsStore.totpSecretKey = value; - } + _settingsStore.totpSecretKey = value; } @action