Factoring the model user and correcting password
This commit is contained in:
parent
2f68cfda0a
commit
9a31439aca
1 changed files with 9 additions and 8 deletions
17
profile.go
17
profile.go
|
@ -64,14 +64,15 @@ func handleProfile(w http.ResponseWriter, r *http.Request) {
|
||||||
data.Success = true
|
data.Success = true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
user, _ = get(User{
|
findUser, err := get(user, config, login.conn)
|
||||||
DN: login.Info.DN
|
if err != nil {
|
||||||
}, config, login.conn)
|
data.ErrorMessage = "handleProfile : " + err.Error()
|
||||||
data.DisplayName = user.DisplayName
|
}
|
||||||
data.GivenName = user.GivenName
|
data.DisplayName = findUser.DisplayName
|
||||||
data.Surname = user.SN
|
data.GivenName = findUser.GivenName
|
||||||
data.Description = user.Description
|
data.Surname = findUser.SN
|
||||||
data.Mail = user.Mail
|
data.Description = findUser.Description
|
||||||
|
data.Mail = findUser.Mail
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue