create session with password on register

This commit is contained in:
Max Peintner
2023-06-16 15:08:41 +02:00
parent fbbc48e5cd
commit 3aa8e8fbc4
7 changed files with 47 additions and 15 deletions

View File

@@ -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 its really you</h1>

View File

@@ -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,