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