Новые изменения в компонеты
This commit is contained in:
parent
d3d3ad92c3
commit
3411dd4931
17 changed files with 99 additions and 58 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import type { APIRoute } from 'astro';
|
||||
|
||||
const POCKETBASE_URL = import.meta.env.POCKETBASE_URL || 'http://localhost:8090';
|
||||
const PB_POCKETBASE_URL = import.meta.env.PB_POCKETBASE_URL || 'http://localhost:8090';
|
||||
|
||||
const PASSWORD_MIN_LENGTH = 8;
|
||||
const PASSWORD_MAX_LENGTH = 12;
|
||||
|
|
@ -62,7 +62,7 @@ export const POST: APIRoute = async ({ request }) => {
|
|||
);
|
||||
}
|
||||
|
||||
const confirmUrl = `${POCKETBASE_URL}/api/collections/users/confirm-password-reset`;
|
||||
const confirmUrl = `${PB_POCKETBASE_URL}/api/collections/users/confirm-password-reset`;
|
||||
|
||||
const response = await fetch(confirmUrl, {
|
||||
method: 'POST',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue