userpage: add password reset direct link

for #363, adds /my/account/password/reset. Navigate to it to skip
    pressing the "forgot password?" button on the login screen. Works
    with the nice-ish onpopstate override thing I put in setup.ts a
    while ago. Maybe I should make it a module.
This commit is contained in:
Harvey Tindall
2024-08-27 14:56:24 +01:00
parent 848b532b3c
commit b5dea7755b
5 changed files with 33 additions and 9 deletions
+1
View File
@@ -159,6 +159,7 @@ func (app *appContext) loadRoutes(router *gin.Engine) {
}
if userPageEnabled {
router.GET(p+"/my/account", app.MyUserPage)
router.GET(p+"/my/account/password/reset", app.MyUserPage)
router.GET(p+"/my/token/login", app.getUserTokenLogin)
router.GET(p+"/my/token/refresh", app.getUserTokenRefresh)
router.GET(p+"/my/confirm/:jwt", app.ConfirmMyAction)