progress bar + better ui (fix)

This commit is contained in:
Ludwig Lehnert
2026-03-27 20:10:51 +01:00
parent 83fbeff16c
commit 085d5e26cf
3 changed files with 35 additions and 15 deletions

View File

@@ -153,7 +153,6 @@ export async function clearAuthCookie() {
export async function requireAuthenticatedUser() {
const user = await getAuthenticatedUser();
if (!user) {
await clearAuthCookie();
redirect('/manage/login');
}
return user;
@@ -162,7 +161,6 @@ export async function requireAuthenticatedUser() {
export async function requireAdminUser() {
const user = await getAuthenticatedUser();
if (!user || !user.admin) {
await clearAuthCookie();
redirect('/manage/admin');
}
return user;