From 623f083cd94842766c6d9430cf3bdad8fc4d5dbc Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Thu, 19 Mar 2026 13:30:28 +0100 Subject: [PATCH] fix(totp): new user can properly use totp --- UI/MainUI/SOGoRootPage.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/MainUI/SOGoRootPage.m b/UI/MainUI/SOGoRootPage.m index c5cde4ae4..03c0250e6 100644 --- a/UI/MainUI/SOGoRootPage.m +++ b/UI/MainUI/SOGoRootPage.m @@ -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];