mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
CW-566-Cake2FA-Bypass-Bug (#1275)
* fix: TOTP 2FA Bug * fix: key switch error * Fix 2fa preset issue --------- Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
This commit is contained in:
co-authored by
OmarHatem
parent
fc352a6da3
commit
f68987bfb9
@@ -997,7 +997,7 @@ abstract class SettingsStoreBase with Store {
|
||||
final totpSecretKey = await SecureKey.getString(
|
||||
secureStorage: secureStorage,
|
||||
sharedPreferences: sharedPreferences,
|
||||
key: SecureKey.useTOTP2FA,
|
||||
key: SecureKey.totpSecretKey,
|
||||
) ??
|
||||
'';
|
||||
|
||||
@@ -1243,7 +1243,7 @@ abstract class SettingsStoreBase with Store {
|
||||
totpSecretKey = await SecureKey.getString(
|
||||
secureStorage: _secureStorage,
|
||||
sharedPreferences: sharedPreferences,
|
||||
key: SecureKey.useTOTP2FA,
|
||||
key: SecureKey.totpSecretKey,
|
||||
) ??
|
||||
totpSecretKey;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user