mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-23 18:50:07 +00:00
feat: improve initial admin creation workflow
This commit is contained in:
@@ -12,7 +12,7 @@ export function getAuthRedirectPath(path: string, user: User | null) {
|
||||
path == '/lc' ||
|
||||
path.startsWith('/lc/') ||
|
||||
path == '/signup' ||
|
||||
path.startsWith('/signup/') ||
|
||||
path == '/signup/setup' ||
|
||||
path.startsWith('/st/');
|
||||
const isPublicPath = ['/authorize', '/device', '/health', '/healthz'].includes(path);
|
||||
const isAdminPath = path == '/settings/admin' || path.startsWith('/settings/admin/');
|
||||
|
||||
Reference in New Issue
Block a user