mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 05:12:20 +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;
|
totpError: ClientError | undefined;
|
||||||
if (session && session.factors?.user?.id) {
|
if (session && session.factors?.user?.id) {
|
||||||
if (method === "time-based") {
|
if (method === "time-based") {
|
||||||
// inconsistency with token: email works with machine token, totp works with session token
|
await registerTOTP(session.factors.user.id)
|
||||||
await registerTOTP(session.factors.user.id, token)
|
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
if (resp) {
|
if (resp) {
|
||||||
totpResponse = resp;
|
totpResponse = resp;
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import {
|
import { AuthenticationMethodType, LoginSettings } from "@zitadel/server";
|
||||||
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 { EMAIL, SMS, TOTP, U2F } from "./AuthMethods";
|
import { EMAIL, SMS, TOTP, U2F } from "./AuthMethods";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|||||||
Reference in New Issue
Block a user