diff options
author | Lauris BH <lauris@nix.lv> | 2019-11-04 21:10:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-04 21:10:37 +0200 |
commit | 86a44f6b48cf4e814452a71d97e42e486237a307 (patch) | |
tree | 123ced125b46d13e4fddb18b94765ea0ed498e0f /templates/admin | |
parent | 3fb9e3afe36e72f855272eb6c43d47824e414117 (diff) | |
download | gitea-86a44f6b48cf4e814452a71d97e42e486237a307.tar.gz gitea-86a44f6b48cf4e814452a71d97e42e486237a307.zip |
Fix new user form for non-local users (#8826)
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/user/new.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/user/new.tmpl b/templates/admin/user/new.tmpl index b9e326e734..06b7d70efe 100644 --- a/templates/admin/user/new.tmpl +++ b/templates/admin/user/new.tmpl @@ -42,7 +42,7 @@ <input id="password" name="password" type="password" value="{{.password}}" {{if eq .login_type "0-0"}}required{{end}}> </div> - <div class="inline field"> + <div class="inline field local{{if ne .login_type "0-0"}} hide{{end}}"> <div class="ui checkbox"> <label><strong>{{.i18n.Tr "auth.allow_password_change" }}</strong></label> <input name="must_change_password" type="checkbox" checked> |