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