feat: fix "dest is missing" bug in MFA login (#3383)

* feat: support stateless mfa setup

* Revert "feat: support stateless mfa setup"

This reverts commit bd843b2ff3.

* feat: use new implement

* fix: missing set field on login
This commit is contained in:
DacongDA
2024-11-29 19:59:30 +08:00
committed by GitHub
parent fe40910e3b
commit 79dbdab6c9

View File

@ -15,6 +15,7 @@ export const MfaVerifySmsForm = ({mfaProps, application, onFinish, method, user}
useEffect(() => {
if (method === mfaAuth) {
setDest(mfaProps.secret);
form.setFieldValue("dest", mfaProps.secret);
return;
}
if (mfaProps.mfaType === SmsMfaType) {