mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-29 10:02:43 +00:00
fix(totp): new user can properly use totp
This commit is contained in:
@@ -418,7 +418,8 @@ static const NSString *kJwtKey = @"jwt";
|
||||
}
|
||||
else
|
||||
{
|
||||
if ([us dictionaryForKey: @"General"] && ![[us dictionaryForKey: @"General"] objectForKey: @"PrivateSalt"])
|
||||
if ([us dictionaryForKey: @"General"] && !([[us dictionaryForKey: @"General"] objectForKey: @"PrivateSalt"] ||
|
||||
[[us dictionaryForKey: @"General"] objectForKey: @"totpKey"]))
|
||||
{
|
||||
// Since v5.3.0, a new salt is used for TOTP. If it's missing, disable TOTP and alert the user.
|
||||
[ud setTotpEnabled: NO];
|
||||
|
||||
Reference in New Issue
Block a user