mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-16 07:53: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 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(() => {
|
useEffect(() => {
|
||||||
if (method === mfaAuth) {
|
if (method === mfaAuth) {
|
||||||
setDest(mfaProps.secret);
|
setDest(mfaProps.secret);
|
||||||
|
form.setFieldValue("dest", mfaProps.secret);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mfaProps.mfaType === SmsMfaType) {
|
if (mfaProps.mfaType === SmsMfaType) {
|
||||||
|
Reference in New Issue
Block a user