Skip to content

armgit / ente

Public Imported from GitHub
0

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

handle srp verify failed

Abhinav7a210dd0f3e9
diff --git a/packages/accounts/api/srp.ts b/packages/accounts/api/srp.ts
index 496f8009cc..f401e4df54 100644
--- a/packages/accounts/api/srp.ts
+++ b/packages/accounts/api/srp.ts
@@ -110,7 +110,7 @@ export const verifySRPSession = async (
logError(e, 'verifySRPSession failed');
if (
e instanceof ApiError &&
- e.httpStatusCode === HttpStatusCode.Forbidden
+ e.httpStatusCode === HttpStatusCode.Unauthorized
) {
throw Error(CustomError.INCORRECT_PASSWORD);
} else {