mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
move login and add logout
This commit is contained in:
@@ -35,7 +35,7 @@ export function isAdminSession(req: any) {
|
||||
}
|
||||
|
||||
export function redirectToLogin(req: any, res: any) {
|
||||
const redirectTargetUrl = `${getBaseURL()}/admin/login?redirect=${encodeURIComponent(
|
||||
const redirectTargetUrl = `${getBaseURL()}/login?redirect=${encodeURIComponent(
|
||||
req.url
|
||||
)}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user