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

* feat: support stateless mfa setup

* Revert "feat: support stateless mfa setup"

This reverts commit bd843b2ff3e49dbb79bc22e1ead303bd7e0054a1.

* 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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {