update token expire time
This commit is contained in:
@@ -89,7 +89,7 @@ func UserLogin(c *context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
err = memstore.RedisSet("golang", hex.EncodeToString(tByte), string(jsonStr), 600)
|
err = memstore.RedisSet("golang", hex.EncodeToString(tByte), string(jsonStr), 3600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.ServerError(nil)
|
c.ServerError(nil)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user