mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-11-29 16:43:17 +00:00
fix: Jwt
This commit is contained in:
@@ -32,7 +32,7 @@ func RustAuth() gin.HandlerFunc {
|
||||
//验证token
|
||||
|
||||
//检查是否设置了jwt key
|
||||
if global.Config.Jwt.Key != "" {
|
||||
if len(global.Jwt.Key) > 0 {
|
||||
uid, _ := service.AllService.UserService.VerifyJWT(token)
|
||||
if uid == 0 {
|
||||
c.JSON(401, gin.H{
|
||||
|
||||
Reference in New Issue
Block a user