fix
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
)
|
||||
|
||||
// 验证权限
|
||||
func (l *Ldap) VerifyAuthority(r *http.Request, jwtSecret string) bool {
|
||||
func (l *Ldap) VerifyAuthority(r *http.Request) bool {
|
||||
token := r.Header.Get("Ldap-Authorization")
|
||||
info, err := l.ParseJwtToken(token, jwtSecret)
|
||||
info, err := l.ParseJwtToken(token, l.jwtSecret)
|
||||
if err != nil {
|
||||
logx.Error("解析token失败", err, "----token:", token)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user