mirror of
https://gitee.com/gitea/gitea
synced 2025-12-10 02:00:27 +08: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