Manage user account

This commit is contained in:
William Bouzourène 2025-01-05 14:44:05 +01:00
parent e2d2697907
commit ee9a453f63
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
4 changed files with 297 additions and 0 deletions

View file

@ -115,6 +115,12 @@ func main() {
app.Get("/totp/verify", controllers.TotpVerifyPage)
app.Post("/totp/verify", controllers.TotpVerifyPage)
// Account manage
app.Get("/account/manage", controllers.AccountManage)
app.Post("/account/manage", controllers.AccountManage)
app.Get("/account/totp", controllers.AccountTotp)
app.Post("/account/totp", controllers.AccountTotp)
// Admin: Sections
app.Get("/admin/sections", controllers.Sections)
app.Get("/admin/sections/:id<int;min(0)>", controllers.SectionShow)