Skip to content

Commit

Permalink
radius 添加 CallingStationID
Browse files Browse the repository at this point in the history
  • Loading branch information
bjdgyc committed Nov 15, 2024
1 parent 4846c80 commit 740fcf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/handler/link_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ func LinkAuth(w http.ResponseWriter, r *http.Request) {
UserActLog: ua,
}
// TODO 用户密码校验
err = dbdata.CheckUser(cr.Auth.Username, cr.Auth.Password, cr.GroupSelect,
map[string]interface{}{"mac_addr": cr.MacAddressList.MacAddress})
ext := map[string]interface{}{"mac_addr": cr.MacAddressList.MacAddress}
err = dbdata.CheckUser(cr.Auth.Username, cr.Auth.Password, cr.GroupSelect, ext)
if err != nil {
// lockManager.LoginStatus.Store(loginStatusKey, false) // 记录登录失败状态
// hc := r.Context().Value(loginStatusKey).(*HttpContext)
Expand Down

0 comments on commit 740fcf6

Please sign in to comment.