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 {
|
} 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"], ""))
|
||||||
|
|
Loading…
Reference in a new issue