progress bar + better ui (fix)

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

No files matched your search

-2
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;