]> source.dussan.org Git - gitea.git/commit
Add setting to OAuth handlers to skip local 2FA authentication (#16594)
authorzeripath <art27@cantab.net>
Fri, 10 Sep 2021 16:37:57 +0000 (17:37 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Sep 2021 16:37:57 +0000 (18:37 +0200)
commit9ca0e7905c24f18ed246e65397589f0f41b50506
tree5c0c03dc297f47e7f60711563efbaf87993463a6
parent51578d64188a7077848cb60d3ead8e818637ab59
Add setting to OAuth handlers to skip local 2FA authentication (#16594)

This PR adds a setting to OAuth and OpenID login sources to allow the source to
skip local 2FA authentication.

Fix #13939

Signed-off-by: Andrew Thornton <art27@cantab.net>
cmd/admin.go
options/locale/locale_en-US.ini
routers/web/admin/auths.go
routers/web/user/auth.go
services/auth/source/oauth2/source.go
services/forms/auth_form.go
templates/admin/auth/edit.tmpl
templates/admin/auth/source/oauth.tmpl