|
@@ -11,7 +11,7 @@ import { setIsFirstLogin } from '@ente/shared/storage/localStorage/helpers';
|
|
import { clearKeys } from '@ente/shared/storage/sessionStorage';
|
|
import { clearKeys } from '@ente/shared/storage/sessionStorage';
|
|
import { PAGES } from '../constants/pages';
|
|
import { PAGES } from '../constants/pages';
|
|
import { KeyAttributes, User } from '@ente/shared/user/types';
|
|
import { KeyAttributes, User } from '@ente/shared/user/types';
|
|
-import { SRPAttributes, SRPSetupAttributes } from '../types/srp';
|
|
|
|
|
|
+import { SRPSetupAttributes } from '../types/srp';
|
|
import { Box, Typography } from '@mui/material';
|
|
import { Box, Typography } from '@mui/material';
|
|
import FormPaperTitle from '@ente/shared/components/Form/FormPaper/Title';
|
|
import FormPaperTitle from '@ente/shared/components/Form/FormPaper/Title';
|
|
import FormPaper from '@ente/shared/components/Form/FormPaper';
|
|
import FormPaper from '@ente/shared/components/Form/FormPaper';
|
|
@@ -41,9 +41,6 @@ export default function VerifyPage({ appContext, router, appName }: PageProps) {
|
|
const keyAttributes: KeyAttributes = getData(
|
|
const keyAttributes: KeyAttributes = getData(
|
|
LS_KEYS.KEY_ATTRIBUTES
|
|
LS_KEYS.KEY_ATTRIBUTES
|
|
);
|
|
);
|
|
- const srpAttributes: SRPAttributes = getData(
|
|
|
|
- LS_KEYS.SRP_ATTRIBUTES
|
|
|
|
- );
|
|
|
|
if (!user?.email) {
|
|
if (!user?.email) {
|
|
router.push(PAGES.ROOT);
|
|
router.push(PAGES.ROOT);
|
|
} else if (
|
|
} else if (
|
|
@@ -51,11 +48,6 @@ export default function VerifyPage({ appContext, router, appName }: PageProps) {
|
|
(user.token || user.encryptedToken)
|
|
(user.token || user.encryptedToken)
|
|
) {
|
|
) {
|
|
router.push(PAGES.CREDENTIALS);
|
|
router.push(PAGES.CREDENTIALS);
|
|
- } else if (
|
|
|
|
- srpAttributes?.srpUserID &&
|
|
|
|
- !srpAttributes?.isEmailMFAEnabled
|
|
|
|
- ) {
|
|
|
|
- router.push(PAGES.CREDENTIALS);
|
|
|
|
} else {
|
|
} else {
|
|
setEmail(user.email);
|
|
setEmail(user.email);
|
|
}
|
|
}
|