diff options
author | Lauris BH <lauris@nix.lv> | 2019-11-05 02:19:32 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-05 08:19:32 +0800 |
commit | 26457782c120da990a5b6a509fd45db7e75f7e63 (patch) | |
tree | 3b593e1fadb628e6e157a2f6ae866f1bd35e8d3a /templates/admin | |
parent | 1c65ecc1c62ae33499420c28891b088a98ff1cf7 (diff) | |
download | gitea-26457782c120da990a5b6a509fd45db7e75f7e63.tar.gz gitea-26457782c120da990a5b6a509fd45db7e75f7e63.zip |
Fix new user form for non-local users (#8826) (#8828)
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> |