mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
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:
parent
fe40910e3b
commit
79dbdab6c9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user