fix: Rotate TOTP Secret (#1056)

This commit is contained in:
Adegoke David 2023-08-23 00:05:48 +01:00 committed by GitHub
parent ee586ab514
commit 43cf8a896e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,9 +96,7 @@ abstract class Setup2FAViewModelBase with Store {
@action @action
void _setBase32SecretKey(String value) { void _setBase32SecretKey(String value) {
if (_settingsStore.totpSecretKey == '') { _settingsStore.totpSecretKey = value;
_settingsStore.totpSecretKey = value;
}
} }
@action @action