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:
committed by
techknowlogick
parent
f98040ad50
commit
2a6d3ba058
@@ -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 {
|
||||
|
Reference in New Issue
Block a user