Refactoring
This commit is contained in:
parent
5120dbef28
commit
e5358c20d8
2 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ func checkLogin(w http.ResponseWriter, r *http.Request) *LoginStatus {
|
|||
return nil
|
||||
}
|
||||
userEntry := ldapUser.UserEntry
|
||||
loginStatus := &LoginStatus{
|
||||
loginStatus := LoginStatus{
|
||||
Info: login_info,
|
||||
conn: l,
|
||||
UserEntry: userEntry,
|
||||
|
@ -65,7 +65,7 @@ func checkLogin(w http.ResponseWriter, r *http.Request) *LoginStatus {
|
|||
CanInvite: ldapUser.CanInvite,
|
||||
},
|
||||
}
|
||||
return loginStatus
|
||||
return &loginStatus
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ func handleProfile(w http.ResponseWriter, r *http.Request) {
|
|||
templatePasswd.Execute(w, PasswdTplData{
|
||||
|
||||
Common: NestedCommonTplData{
|
||||
CanAdmin: login.Common.CanAdmin,
|
||||
CanAdmin: login.CanAdmin,
|
||||
LoggedIn: true},
|
||||
})
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue