[fix] processGetURL session expired
This commit is contained in:
parent
886513f9ff
commit
96fddcd0f9
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ func processGetURL(process *gou.Process) interface{} {
|
||||||
|
|
||||||
claims := helper.JwtValidate(token)
|
claims := helper.JwtValidate(token)
|
||||||
userID, err := session.Global().ID(claims.SID).Get("user_id")
|
userID, err := session.Global().ID(claims.SID).Get("user_id")
|
||||||
if err != nil || userID == "" {
|
if err != nil || userID == nil {
|
||||||
exception.New("session expired", 403).Throw()
|
exception.New("session expired", 403).Throw()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue