mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 20:32:17 +00:00
create session with password on register
This commit is contained in:
@@ -22,7 +22,6 @@ export default async function Page({
|
||||
});
|
||||
}
|
||||
|
||||
console.log(sessionFactors);
|
||||
return (
|
||||
<div className="flex flex-col items-center space-y-4">
|
||||
<h1>Use your passkey to confirm it’s really you</h1>
|
||||
|
||||
@@ -18,9 +18,9 @@ import { NextRequest, NextResponse } from "next/server";
|
||||
export async function POST(request: NextRequest) {
|
||||
const body = await request.json();
|
||||
if (body) {
|
||||
const { loginName } = body;
|
||||
const { loginName, password } = body;
|
||||
|
||||
const createdSession = await createSession(server, loginName);
|
||||
const createdSession = await createSession(server, loginName, password);
|
||||
if (createdSession) {
|
||||
return getSession(
|
||||
server,
|
||||
|
||||
Reference in New Issue
Block a user