From 740fcf64e99709940e02a18f9d3df7167cd9d3ee Mon Sep 17 00:00:00 2001 From: bjdgyc Date: Fri, 15 Nov 2024 16:42:50 +0800 Subject: [PATCH] =?UTF-8?q?radius=20=E6=B7=BB=E5=8A=A0=20=20CallingStation?= =?UTF-8?q?ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/handler/link_auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/handler/link_auth.go b/server/handler/link_auth.go index 8403ca3c..2450e64b 100644 --- a/server/handler/link_auth.go +++ b/server/handler/link_auth.go @@ -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)