Factoring the model user and correcting password
This commit is contained in:
parent
b91d2d4f9c
commit
0ffa7a155a
1 changed files with 9 additions and 10 deletions
|
@ -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"], ""))
|
||||
|
|
Loading…
Reference in a new issue