mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-05-20 22:54:42 +02:00
fix: use /login endpoint for auth initiation instead of /api/auth/whoami
The /api/auth/whoami endpoint returns JSON after auth, leaving users on a raw JSON page. The new /login endpoint triggers forward_auth and redirects to / after successful auth.
This commit is contained in:
parent
bc6296415c
commit
77340a9fbc
4 changed files with 4 additions and 4 deletions
|
|
@ -61,7 +61,7 @@ export default function Panel({ onManeuverClick }) {
|
|||
}
|
||||
|
||||
// Auth handlers
|
||||
const handleLogin = () => { window.location.href = '/api/auth/whoami' }
|
||||
const handleLogin = () => { window.location.href = '/login' }
|
||||
const handleLogout = () => { window.location.href = '/outpost.goauthentik.io/sign_out' }
|
||||
|
||||
// Optimize stops
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue