1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Allow admin toggle forcing a password change for newly created users (#4563)

This commit is contained in:
Lanre Adelowo
2018-09-13 17:34:36 +01:00
committed by techknowlogick
parent f98040ad50
commit 2a6d3ba058
5 changed files with 60 additions and 13 deletions

View File

@@ -42,6 +42,13 @@
<input id="password" name="password" type="password" value="{{.password}}" {{if eq .login_type "0-0"}}required{{end}}>
</div>
<div class="inline field">
<div class="ui checkbox">
<label><strong>{{.i18n.Tr "auth.allow_password_change" }}</strong></label>
<input name="must_change_password" type="checkbox" checked>
</div>
</div>
<!-- Send register notify e-mail -->
{{if .CanSendEmail}}
<div class="inline field">