diff options
Diffstat (limited to 'weed/security/guard.go')
| -rw-r--r-- | weed/security/guard.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/security/guard.go b/weed/security/guard.go index fd9c8e0b3..2ae4ec5a9 100644 --- a/weed/security/guard.go +++ b/weed/security/guard.go @@ -42,13 +42,13 @@ https://github.com/pkieltyka/jwtauth/blob/master/jwtauth.go */ type Guard struct { whiteList []string - SecretKey Secret + SecretKey SigningKey isActive bool } func NewGuard(whiteList []string, secretKey string) *Guard { - g := &Guard{whiteList: whiteList, SecretKey: Secret(secretKey)} + g := &Guard{whiteList: whiteList, SecretKey: SigningKey(secretKey)} g.isActive = len(g.whiteList) != 0 || len(g.SecretKey) != 0 return g } |
