added user photo upload page

This commit is contained in:
2025-10-11 21:38:01 -06:00
parent 9d2c57815e
commit 185d1456a6
6 changed files with 114 additions and 5 deletions
+2 -2
View File
@@ -127,7 +127,7 @@ func Login(ctxt ui.AmContext) (string, any, error) {
if user.VerifyEMail {
return "redirect", target, nil
} else {
return "redirect", "/verify?tgt=" + url.PathEscape(target), nil
return "redirect", "/verify?tgt=" + url.QueryEscape(target), nil
}
}
return dlg.RenderError(ctxt, "No known button click on POST to login function.")
@@ -393,7 +393,7 @@ func NewAccount(ctxt ui.AmContext) (string, any, error) {
if err == nil {
// user is now logged in! redirect to E-mail verification
ctxt.ReplaceUser(user)
return "redirect", "/verify?tgt=" + url.PathEscape(target), nil
return "redirect", "/verify?tgt=" + url.QueryEscape(target), nil
}
}
}