mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +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 bd843b2ff3
.
* feat: use new implement
* fix: missing set field on login
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user