Skip to content

Commit f503333

Browse files
Merge pull request #923 from contentstack/bugfix/email-validation
fix added for login api response changed to error_code
2 parents 71ba021 + e290df6 commit f503333

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/pages/Login/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const Login: FC<IProps> = () => {
147147
};
148148

149149
const response = await userSession(userAuth?.user);
150-
if (response?.status === 294 && response?.data?.error_message === TFA_MESSAGE) {
150+
if ((response?.status === 294 || response?.data?.error_code === 294) && response?.data?.error_message === TFA_MESSAGE) {
151151
setIsLoading(false);
152152
setLoginStates((prev) => ({ ...prev, tfa: true }));
153153
}

0 commit comments

Comments
 (0)