diff options
author | zeripath <art27@cantab.net> | 2021-09-27 03:02:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 03:02:01 +0200 |
commit | 7e98cd58dd670fd83c0ace5e9c8ef9a0407fd575 (patch) | |
tree | d6a7158517d666f7865540c5d350a48abcb2a72f /templates/admin/auth/new.tmpl | |
parent | [skip ci] Updated translations via Crowdin (diff) | |
download | forgejo-7e98cd58dd670fd83c0ace5e9c8ef9a0407fd575.tar.xz forgejo-7e98cd58dd670fd83c0ace5e9c8ef9a0407fd575.zip |
Add SkipLocal2FA option to pam and smtp sources (#17078)
* Add SkipLocal2FA option to other pam and smtp sources
Extend #16954 to allow setting skip local 2fa on pam and SMTP authentication sources
Signed-off-by: Andrew Thornton <art27@cantab.net>
* make SkipLocal2FA omitempty
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'templates/admin/auth/new.tmpl')
-rw-r--r-- | templates/admin/auth/new.tmpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index ba1f145a4a..13e1366c87 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -41,6 +41,13 @@ <label for="pam_email_domain">{{.i18n.Tr "admin.auths.pam_email_domain"}}</label> <input id="pam_email_domain" name="pam_email_domain" value="{{.pam_email_domain}}"> </div> + <div class="pam optional field {{if not (eq .type 4)}}hide{{end}}"> + <div class="ui checkbox"> + <label for="skip_local_two_fa"><strong>{{.i18n.Tr "admin.auths.skip_local_two_fa"}}</strong></label> + <input id="skip_local_two_fa" name="skip_local_two_fa" type="checkbox" {{if .skip_local_two_fa}}checked{{end}}> + <p class="help">{{.i18n.Tr "admin.auths.skip_local_two_fa_helper"}}</p> + </div> + </div> <!-- OAuth2 --> {{ template "admin/auth/source/oauth" . }} |