1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Handle unauthorized user events gracefully (#15071) (#15074)

This commit is contained in:
Lauris BH
2021-03-21 12:21:28 +02:00
committed by GitHub
parent ed60fe0986
commit ac2ae66ae7
2 changed files with 12 additions and 1 deletions

View File

@@ -400,7 +400,7 @@ func RegisterRoutes(m *web.Route) {
})
}, reqSignOut)
m.Any("/user/events", reqSignIn, events.Events)
m.Any("/user/events", events.Events)
m.Group("/login/oauth", func() {
m.Get("/authorize", bindIgnErr(auth.AuthorizationForm{}), user.AuthorizeOAuth)