Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix verifySession failed showing something went wrong

Abhinav4f9d03a626d8
diff --git a/apps/photos/src/services/userService.ts b/apps/photos/src/services/userService.ts
index 34ba6c373d..265dec2490 100644
--- a/apps/photos/src/services/userService.ts
+++ b/apps/photos/src/services/userService.ts
@@ -732,7 +732,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 {