mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-25 13:57:47 +00:00
fix build
This commit is contained in:
@@ -221,7 +221,7 @@ export async function GET(request: NextRequest) {
|
|||||||
|
|
||||||
const res = await sendLoginname(command);
|
const res = await sendLoginname(command);
|
||||||
|
|
||||||
if (res?.redirect) {
|
if (res && "redirect" in res && res?.redirect) {
|
||||||
const absoluteUrl = new URL(res.redirect, request.url);
|
const absoluteUrl = new URL(res.redirect, request.url);
|
||||||
return NextResponse.redirect(absoluteUrl.toString());
|
return NextResponse.redirect(absoluteUrl.toString());
|
||||||
}
|
}
|
||||||
@@ -429,7 +429,7 @@ export async function GET(request: NextRequest) {
|
|||||||
|
|
||||||
const res = await sendLoginname(command);
|
const res = await sendLoginname(command);
|
||||||
|
|
||||||
if (res?.redirect) {
|
if (res && "redirect" in res && res?.redirect) {
|
||||||
const absoluteUrl = new URL(res.redirect, request.url);
|
const absoluteUrl = new URL(res.redirect, request.url);
|
||||||
return NextResponse.redirect(absoluteUrl.toString());
|
return NextResponse.redirect(absoluteUrl.toString());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user