Comments (1)
gToken配置
CacheMode = 2
CacheKey = "GToken:"
Timeout = 0
MaxRefresh = 0
TokenDelimiter="_"
EncryptKey = "koi29a83idakguqjq29asd9asd8a7jhq"
AuthFailMsg = "登录超时,请重新登录"
MultiLogin = true #后台是否允许多端同时在线
GovMultiLogin = true #政务平台是否允许多端同时在线
其中CacheMode 是gToken存储模式,1为直接存储在内存中,2为使用redis存储 。
注意:如果存储在内存中则每次服务重启都会清空token数据,也就是用户登录数据会丢失,需要重新登录。
from gfast.
Related Issues (20)
- 旧 gf 基础库引起的 绑定0.0.0.0:8080 错误 HOT 2
- 希望升级gf最新版本,谢谢 HOT 1
- 期待os-v3文档跟上节奏.... HOT 1
- 运行后端main.go时报错 HOT 1
- 为啥子我搭建好的系统菜单栏没有字 HOT 2
- v3.2的代码生成和定时器被阉割了吗? HOT 1
- 仓库代码中无文档中的upload.go代码
- 请问 在os-v3.2中怎么没有找到接口role/dataScope的实现呢?
- gofast v1.0版本,参数校验不生效
- run方法接口返回如何自定义code和message HOT 2
- 这个项目怎么启动啊? HOT 2
- 支持负载均衡下的集群部署吗? HOT 1
- 这个sql表是自己要新建一个表吗?
- 登录界面验证码加载不出来,报网络错误 HOT 2
- 新手提问,数据库咋搞啊 HOT 2
- 新人求教如何判断错误信息对应文件
- 混合验证码提示参数错误 HOT 2
- 数据库连接和报错,提示不允许链接mysql服务
- 代码调用顺序问题 HOT 1
- 业务实现求解 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gfast.