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

@ -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 {