Factoring the model user and correcting password

This commit is contained in:
Chris Mann 2023-07-22 10:10:30 +02:00
parent b91d2d4f9c
commit 0ffa7a155a

View file

@ -63,7 +63,7 @@ func handleProfile(w http.ResponseWriter, r *http.Request) {
} else { } else {
data.Success = true data.Success = true
} }
} else { }
findUser, err := get(user, config, login.conn) findUser, err := get(user, config, login.conn)
if err != nil { if err != nil {
data.ErrorMessage = "handleProfile : " + err.Error() data.ErrorMessage = "handleProfile : " + err.Error()
@ -73,7 +73,6 @@ func handleProfile(w http.ResponseWriter, r *http.Request) {
data.Surname = findUser.SN data.Surname = findUser.SN
data.Description = findUser.Description data.Description = findUser.Description
data.Mail = findUser.Mail data.Mail = findUser.Mail
}
/* /*
visible := strings.TrimSpace(strings.Join(r.Form["visibility"], "")) visible := strings.TrimSpace(strings.Join(r.Form["visibility"], ""))