aboutsummaryrefslogtreecommitdiffstats
path: root/routers/admin/orgs.go
diff options
context:
space:
mode:
authorMoritz Heiber <github@heiber.im>2017-07-26 09:33:16 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-07-26 15:33:16 +0800
commit7e12aac61c8ffcfb122d299216a88590e2a63e9c (patch)
tree0340dde62e1be57163d2c65901b09bd496abf5d4 /routers/admin/orgs.go
parent1d032f5220e323e14867cfec0b7b06945a47ee06 (diff)
downloadgitea-7e12aac61c8ffcfb122d299216a88590e2a63e9c.tar.gz
gitea-7e12aac61c8ffcfb122d299216a88590e2a63e9c.zip
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
Diffstat (limited to 'routers/admin/orgs.go')
0 files changed, 0 insertions, 0 deletions