π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix initial load warning not shown on srp login without 2fa
Abhinavc7540d5049fc
diff --git a/apps/photos/src/pages/credentials/index.tsx b/apps/photos/src/pages/credentials/index.tsxindex 66e72dc2b4..22ecd35249 100644--- a/apps/photos/src/pages/credentials/index.tsx+++ b/apps/photos/src/pages/credentials/index.tsx@@ -141,6 +141,7 @@ export default function Credentials() {id,twoFactorSessionID,} = await loginViaSRP(srpAttributes, kek);+ setIsFirstLogin(true);if (twoFactorSessionID) {const sessionKeyAttributes =await cryptoWorker.generateKeyAndEncryptToB64(kek);@@ -154,7 +155,6 @@ export default function Credentials() {twoFactorSessionID,isTwoFactorEnabled: true,});- setIsFirstLogin(true);router.push(PAGES.TWO_FACTOR_VERIFY);throw Error(CustomError.TWO_FACTOR_ENABLED);} else {