mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 05:33:31 +00:00
rm session token from totp register request
This commit is contained in:
@@ -35,8 +35,7 @@ export default async function Page({
|
||||
totpError: ClientError | undefined;
|
||||
if (session && session.factors?.user?.id) {
|
||||
if (method === "time-based") {
|
||||
// inconsistency with token: email works with machine token, totp works with session token
|
||||
await registerTOTP(session.factors.user.id, token)
|
||||
await registerTOTP(session.factors.user.id)
|
||||
.then((resp) => {
|
||||
if (resp) {
|
||||
totpResponse = resp;
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
AuthenticationMethodType,
|
||||
LoginSettings,
|
||||
login,
|
||||
} from "@zitadel/server";
|
||||
import Link from "next/link";
|
||||
import { BadgeState, StateBadge } from "./StateBadge";
|
||||
import clsx from "clsx";
|
||||
import { CheckIcon } from "@heroicons/react/24/outline";
|
||||
import { AuthenticationMethodType, LoginSettings } from "@zitadel/server";
|
||||
import { EMAIL, SMS, TOTP, U2F } from "./AuthMethods";
|
||||
|
||||
type Props = {
|
||||
|
||||
Reference in New Issue
Block a user