mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 09:54:00 +00:00
revert method state
This commit is contained in:
@@ -49,7 +49,7 @@ export function VerifyEmailForm({
|
|||||||
|
|
||||||
const [authMethods, setAuthMethods] = useState<
|
const [authMethods, setAuthMethods] = useState<
|
||||||
AuthenticationMethodType[] | null
|
AuthenticationMethodType[] | null
|
||||||
>([]);
|
>(null);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (code && userId) {
|
if (code && userId) {
|
||||||
@@ -99,7 +99,6 @@ export function VerifyEmailForm({
|
|||||||
async function submitCodeAndContinue(value: Inputs): Promise<boolean | void> {
|
async function submitCodeAndContinue(value: Inputs): Promise<boolean | void> {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
|
||||||
console.log("verifyUser", value.code, userId, isInvite);
|
|
||||||
const verifyResponse = await verifyUser({
|
const verifyResponse = await verifyUser({
|
||||||
code: value.code,
|
code: value.code,
|
||||||
userId,
|
userId,
|
||||||
|
|||||||
Reference in New Issue
Block a user