mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
separate logout page + redirect
This commit is contained in:
@@ -138,6 +138,10 @@ func (p *LoginPage) POST(engine *templating.Engine, app core.App) HandleFunc {
|
||||
})
|
||||
}
|
||||
|
||||
return e.Redirect(303, "/reihen")
|
||||
redirect := "/reihen"
|
||||
if r := e.Request.URL.Query().Get("redirectTo"); r != "" {
|
||||
redirect = r
|
||||
}
|
||||
return e.Redirect(303, redirect)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user