chore: fix userscreen & change pass
This commit is contained in:
@@ -308,11 +308,12 @@ func AdminCreateClient(c *gin.Context) {
|
||||
}
|
||||
|
||||
client := &models.Client{
|
||||
Username: req.Username,
|
||||
Password: string(hashed),
|
||||
Nom: strings.TrimSpace(req.Nom),
|
||||
Prenom: strings.TrimSpace(req.Prenom),
|
||||
Telephone: normalizedPhone,
|
||||
Username: req.Username,
|
||||
Password: string(hashed),
|
||||
Nom: strings.TrimSpace(req.Nom),
|
||||
Prenom: strings.TrimSpace(req.Prenom),
|
||||
Telephone: normalizedPhone,
|
||||
MustChangePassword: true,
|
||||
}
|
||||
|
||||
if err := database.CreateClient(client); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user