mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-15 19:33:44 +00:00
do not rerequest code
This commit is contained in:
@@ -59,7 +59,7 @@ export function LoginOTP({
|
|||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!initialized.current && ["email", "sms"].includes(method)) {
|
if (!initialized.current && ["email", "sms"].includes(method) && !code) {
|
||||||
initialized.current = true;
|
initialized.current = true;
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
updateSessionForOTPChallenge()
|
updateSessionForOTPChallenge()
|
||||||
|
|||||||
Reference in New Issue
Block a user