Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Component state for this component needs refactoring, for now read from source

Manav Rathi3a4dc2147039
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx
index dc7d9d3092..311152dac9 100644
--- a/web/packages/accounts/pages/credentials.tsx
+++ b/web/packages/accounts/pages/credentials.tsx
@@ -288,12 +288,14 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
//
// To cover such cases, we redo the check whenever an incorrect password
// is entered.
+ const srpAttributes: SRPAttributes = getData(LS_KEYS.SRP_ATTRIBUTES);
+ const user: User = getData(LS_KEYS.USER);
if (srpAttributes && user?.email) {
void didPasswordChangeElsewhere(user.email, srpAttributes).then(
(changed) => changed && showSessionExpiredDialog(),
);
}
- }, [srpAttributes, user, showSessionExpiredDialog]);
+ }, [showSessionExpiredDialog]);
if (!keyAttributes && !srpAttributes) {
return (