Implementing Activate User
This commit is contained in:
parent
76b39c0236
commit
780b1ec465
1 changed files with 2 additions and 1 deletions
3
login.go
3
login.go
|
@ -213,7 +213,8 @@ func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
|
|||
if strings.EqualFold(username, config.AdminAccount) {
|
||||
user_dn = username
|
||||
}
|
||||
return doLogin(w, r, username, user_dn, password)
|
||||
loginInfo := *doLogin(w, r, username, user_dn, password)
|
||||
return &loginInfo
|
||||
} else {
|
||||
http.Error(w, "Unsupported method", http.StatusBadRequest)
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue