update token expire time
This commit is contained in:
parent
b7c0155444
commit
8c83ceb9ea
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user