diff options
author | 2021-11-27 14:53:34 +0100 | |
---|---|---|
committer | 2021-11-27 14:53:34 +0100 | |
commit | ce22e03f9deaf424aa21c5cc0ef85e58992a7882 (patch) | |
tree | 48711826e97c1590ae514791f5a6e910b98cfae8 /internal/api/client/auth/auth.go | |
parent | run sqlite tests in parallel (#331) (diff) | |
download | gotosocial-ce22e03f9deaf424aa21c5cc0ef85e58992a7882.tar.xz |
Require confirmed email when checking oauth token (#332)
* move token checker to security package
* update tests with new security package
* add oauth token checking to security package
* check if user email confirmed when parsing token
Diffstat (limited to 'internal/api/client/auth/auth.go')
-rw-r--r-- | internal/api/client/auth/auth.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/api/client/auth/auth.go b/internal/api/client/auth/auth.go index 4b8b7101e..7d9a0caf5 100644 --- a/internal/api/client/auth/auth.go +++ b/internal/api/client/auth/auth.go @@ -81,7 +81,5 @@ func (m *Module) Route(s router.Router) error { s.AttachHandler(http.MethodPost, OauthAuthorizePath, m.AuthorizePOSTHandler) s.AttachHandler(http.MethodGet, CallbackPath, m.CallbackGETHandler) - - s.AttachMiddleware(m.OauthTokenMiddleware) return nil } |