mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2026-05-03 07:00:11 +00:00
fix again
This commit is contained in:
parent
129cb99673
commit
7ee7e0cfff
@ -49,7 +49,7 @@ export async function authorizeRequestWebHandler(request, reply) {
|
|||||||
const record = await getAndValidateStateOfRequest(request);
|
const record = await getAndValidateStateOfRequest(request);
|
||||||
const url = new URL(request.url, `http://${request.headers.host}`);
|
const url = new URL(request.url, `http://${request.headers.host}`);
|
||||||
const callbackUrl = url.searchParams.get("callbackUrl");
|
const callbackUrl = url.searchParams.get("callbackUrl");
|
||||||
const baseUrl = new URL(request.url).pathname?.split('/')?.[1] || '';
|
const baseUrl = new URL(request.url).pathname?.split('/')?.[1] || '/';
|
||||||
|
|
||||||
const method = record.method;
|
const method = record.method;
|
||||||
let nip05: string | undefined;
|
let nip05: string | undefined;
|
||||||
@ -164,7 +164,7 @@ export async function processRegistrationWebHandler(request, reply) {
|
|||||||
try {
|
try {
|
||||||
const record = await getAndValidateStateOfRequest(request);
|
const record = await getAndValidateStateOfRequest(request);
|
||||||
const body = request.body;
|
const body = request.body;
|
||||||
const baseUrl = new URL(request.url).pathname?.split('/')?.[1] || '';
|
const baseUrl = new URL(request.url).pathname?.split('/')?.[1] || '/';
|
||||||
|
|
||||||
// we serialize the payload again and store it
|
// we serialize the payload again and store it
|
||||||
// along with the allowed flag
|
// along with the allowed flag
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<form
|
<form
|
||||||
action="{{baseUrl}}/register/{{record.id}}"
|
action="{{baseUrl}}register/{{record.id}}"
|
||||||
method="POST"
|
method="POST"
|
||||||
class="w-full flex flex-col gap-5">
|
class="w-full flex flex-col gap-5">
|
||||||
{{#if error}}
|
{{#if error}}
|
||||||
|
|||||||
@ -52,7 +52,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<form
|
<form
|
||||||
action="{{baseUrl}}/login"
|
action="{{baseUrl}}login"
|
||||||
method="POST"
|
method="POST"
|
||||||
class="w-full flex flex-col gap-5">
|
class="w-full flex flex-col gap-5">
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user