forgejo/modules/context
Giteabot a8e505a44b
Unify two factor check (#27915) (#27929)
Backport #27915 by @KN4CK3R

Fixes #27819

We have support for two factor logins with the normal web login and with
basic auth. For basic auth the two factor check was implemented at three
different places and you need to know that this check is necessary. This
PR moves the check into the basic auth itself.

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-11-06 18:07:22 +00:00
..
access_log.go
api.go Unify two factor check (#27915) (#27929) 2023-11-06 18:07:22 +00:00
api_org.go
api_test.go
base.go
captcha.go
context.go Clean up template locale usage (#27856) (#27857) 2023-10-31 17:35:55 +01:00
context_cookie.go
context_model.go
context_request.go
context_response.go
context_template.go
context_test.go
csrf.go
org.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
package.go
pagination.go
permission.go
private.go
repo.go Add support for HEAD ref in /src/branch and /src/commit routes (#27384) (#27407) 2023-10-03 08:13:49 +00:00
response.go
utils.go
xsrf.go
xsrf_test.go