Implementing Activate User

This commit is contained in:
Chris Mann 2023-07-21 10:19:07 +02:00
parent 76b39c0236
commit 780b1ec465

View file

@ -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