0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 18:59:53 +01:00
gitea/routers/repo
Moritz Heiber 7e12aac61c Only allow token authentication with 2FA enabled (#2184)
* Don't allow for plain username/password authentication when 2FA is enabled

* Removed debugging statement

* Don't assume a token belongs to a given user, handle two-factor errors properly

* Simplified user/token matching, refactored error handling for two-factor authentication

* Change authentication response to avoid bruteforcing

* Add TODO item as a comment for changing the response for security purposes
2017-07-26 15:33:16 +08:00
..
attachment.go
branch.go
commit.go
download.go
editor.go
http.go Only allow token authentication with 2FA enabled (#2184) 2017-07-26 15:33:16 +08:00
issue_label.go
issue_watch.go
issue.go
middlewares.go
pull.go
release.go
repo.go
setting.go
view.go
webhook.go
wiki.go