fix: auth login URL is /login on Auth_server, not /auth/login

GET /auth/login → 404. Auth_server's user-facing login form lives at
GET https://auth.queo.ru/login (rendered by views/login.html), while
POST /auth/login is the JSON API. Web was redirecting to wrong path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
admin
2026-04-30 21:41:41 +03:00
parent de3af9d5fa
commit 4965fdd60f
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
# URL центра аутентификации Queo
VITE_AUTH_LOGIN_URL=https://auth.queo.ru/auth/login
VITE_AUTH_LOGIN_URL=https://auth.queo.ru/login
+1 -1
View File
@@ -9,7 +9,7 @@ export type Me = {
docPermission: PermissionRole | null;
};
const AUTH_LOGIN_URL = import.meta.env.VITE_AUTH_LOGIN_URL ?? 'https://auth.queo.ru/auth/login';
const AUTH_LOGIN_URL = import.meta.env.VITE_AUTH_LOGIN_URL ?? 'https://auth.queo.ru/login';
export function redirectToLogin(): never {
const returnTo = encodeURIComponent(window.location.href);