mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-09 14:33:02 +08:00
radius 添加 CallingStationID
This commit is contained in:
@@ -99,8 +99,8 @@ func LinkAuth(w http.ResponseWriter, r *http.Request) {
|
|||||||
UserActLog: ua,
|
UserActLog: ua,
|
||||||
}
|
}
|
||||||
// TODO 用户密码校验
|
// TODO 用户密码校验
|
||||||
err = dbdata.CheckUser(cr.Auth.Username, cr.Auth.Password, cr.GroupSelect,
|
ext := map[string]interface{}{"mac_addr": cr.MacAddressList.MacAddress}
|
||||||
map[string]interface{}{"mac_addr": cr.MacAddressList.MacAddress})
|
err = dbdata.CheckUser(cr.Auth.Username, cr.Auth.Password, cr.GroupSelect, ext)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// lockManager.LoginStatus.Store(loginStatusKey, false) // 记录登录失败状态
|
// lockManager.LoginStatus.Store(loginStatusKey, false) // 记录登录失败状态
|
||||||
// hc := r.Context().Value(loginStatusKey).(*HttpContext)
|
// hc := r.Context().Value(loginStatusKey).(*HttpContext)
|
||||||
|
Reference in New Issue
Block a user