From 67035477c16e73795268f1b3677ed594df0eafba Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 21 Nov 2023 17:12:33 +0800 Subject: [PATCH] fix --- server/ldap-admin/internal/logic/ldapuserloginlogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ldap-admin/internal/logic/ldapuserloginlogic.go b/server/ldap-admin/internal/logic/ldapuserloginlogic.go index f68466ea..d02647b0 100644 --- a/server/ldap-admin/internal/logic/ldapuserloginlogic.go +++ b/server/ldap-admin/internal/logic/ldapuserloginlogic.go @@ -66,7 +66,7 @@ func (l *LdapUserLoginLogic) LdapUserLogin(req *types.LdapUserLoginReq, userinfo return resp.SetStatusWithMessage(basic.CodeServiceErr, "密码错误!") } //生成token - token, err := ldapServer.GenJwtToken(ldapUserInfo.UserId, 36000, ldapUserInfo.UserDN, ldapUserInfo.Password) + token, err := ldapServer.GenJwtToken(ldapUserInfo.UserId, l.svcCtx.Config.Auth.AccessExpire, ldapUserInfo.UserDN, ldapUserInfo.Password) if err != nil { logx.Error(err) return resp.SetStatusWithMessage(basic.CodeServiceErr, "生成登录凭证失败")