From f3ddc59b1b65e3228b1ac1aa982ce33069349645 Mon Sep 17 00:00:00 2001 From: yxh Date: Thu, 1 Jul 2021 18:07:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E5=B8=A6=E4=B8=8B=E5=88=92=E7=BA=BF=E7=99=BB=E5=BD=95=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/service/adminService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/service/adminService.go b/library/service/adminService.go index a2a8c32..392eafe 100644 --- a/library/service/adminService.go +++ b/library/service/adminService.go @@ -39,9 +39,9 @@ func AdminLogin(r *ghttp.Request) (string, interface{}) { password := EncryptData(data["password"]) var keys string if AdminMultiLogin { - keys = data["username"] + password + gmd5.MustEncryptString(utils.GetClientIp(r)) + keys = gmd5.MustEncryptString(data["username"]) + gmd5.MustEncryptString(password+utils.GetClientIp(r)) } else { - keys = data["username"] + password + keys = gmd5.MustEncryptString(data["username"]) + gmd5.MustEncryptString(password) } ip := utils.GetClientIp(r) userAgent := r.Header.Get("User-Agent")