mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
Fixed several activation bugs (#15473)
* Removed unneeded form tag. * Fixed typo. * Fixed NPE. * Use better error page. * Splitted GET and POST.
This commit is contained in:
parent
ee3fb92419
commit
7670c1c99e
3 changed files with 47 additions and 17 deletions
|
@ -472,7 +472,8 @@ func RegisterRoutes(m *web.Route) {
|
|||
|
||||
m.Group("/user", func() {
|
||||
// r.Get("/feeds", binding.Bind(auth.FeedsForm{}), user.Feeds)
|
||||
m.Any("/activate", user.Activate, reqSignIn)
|
||||
m.Get("/activate", user.Activate, reqSignIn)
|
||||
m.Post("/activate", user.ActivatePost, reqSignIn)
|
||||
m.Any("/activate_email", user.ActivateEmail)
|
||||
m.Get("/avatar/{username}/{size}", user.Avatar)
|
||||
m.Get("/email2user", user.Email2User)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue