mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 04:12:10 +00:00
Allow admin toggle forcing a password change for newly created users (#4563)
This commit is contained in:
parent
f98040ad50
commit
2a6d3ba058
5 changed files with 60 additions and 13 deletions
|
@ -82,7 +82,7 @@ func NewUserPost(ctx *context.Context, form auth.AdminCreateUserForm) {
|
|||
Passwd: form.Password,
|
||||
IsActive: true,
|
||||
LoginType: models.LoginPlain,
|
||||
MustChangePassword: true,
|
||||
MustChangePassword: form.MustChangePassword,
|
||||
}
|
||||
|
||||
if len(form.LoginType) > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue