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