Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use the value

Manav Rathif5d6037e314a
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx
index 1057f868c9..9e4be54a4f 100644
--- a/web/packages/accounts/pages/credentials.tsx
+++ b/web/packages/accounts/pages/credentials.tsx
@@ -146,8 +146,8 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
setSrpAttributes(srpAttributes);
const email = user.email;
if (email) {
- void ifPasswordChangedElsewhere(email, srpAttributes).then(
- showSessionExpiredDialog,
+ void didPasswordChangeElsewhere(email, srpAttributes).then(
+ (changed) => changed && showSessionExpiredDialog(),
);
}
} else {
@@ -378,7 +378,7 @@ export default Page;
*
* @param localSRPAttributes The local SRP attributes.
*/
-const ifPasswordChangedElsewhere = async (
+const didPasswordChangeElsewhere = async (
email: string,
localSRPAttributes: SRPAttributes,
) => {