Skip to content

armgit / ente

Public Imported from GitHub
0

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

Before computing with the keyattributes

Manav Rathi25a79e4146e4
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx
index d58c316a4c..d81b4cef67 100644
--- a/web/packages/accounts/pages/credentials.tsx
+++ b/web/packages/accounts/pages/credentials.tsx
@@ -201,6 +201,8 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
const getKeyAttributes: VerifyMasterPasswordFormProps["getKeyAttributes"] =
async (kek: string) => {
try {
+ if (sessionValidityCheck) await sessionValidityCheck;
+
const cryptoWorker = await ComlinkCryptoWorker.getInstance();
const {
keyAttributes,
@@ -279,8 +281,6 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
passphrase,
) => {
try {
- if (sessionValidityCheck) await sessionValidityCheck;
-
if (isFirstLogin() && passphrase) {
await generateAndSaveIntermediateKeyAttributes(
passphrase,