Comments (5)
CacheKey和EncryptKey调整一下试试
from gfast.
我同时在一个电脑上跑两个gfast项目,配置不同的gtoken的信息,但是两个项目不能同时登录,不然会相互影响,提示用户信息验证失败,我用的gotken模式1,没用redis,难道是哪里还需要配置嘛?
你应该遇到的跟我的问题差不多,原问题https://github.com/tiger1103/gfast/issues/14。
我是用的redis模式,解决办法就是两个项目使用不同的redis库就可以解决了,例如一个你用了1,另外一个用5就可以了。如果你是用的内存模式,那么两者的储存的key改一下名字让他们不相同,应该就可以解决了。
from gfast.
看样子像是gcache的问题,但是理论上两个不同的进程内存数据是隔离的,试试用gf2的gfast v3看看
from gfast.
使用内存缓存是隔离的,缓存是在不同内存块,不会互相影响。你看下是否浏览器端用的同一个域名造成token相互冲突,用不同浏览器或不同域名试一下。
from gfast.
已经解决了,估计就是同一个域名冲突造成的
from gfast.
Related Issues (20)
- Add a security policy
- 忍不了拼写错误, 提个bug,验证码
- app\commom\service\casbin.go的中加载策略重复 HOT 1
- 为啥去掉gtoken,自己再写一套gftoken呢? HOT 1
- v3版本go 1.18下安装报错
- vue3 cnpm run dev 报错 HOT 3
- http://localhost:8888/#/login?redirect=/¶ms={}出现了空白 HOT 6
- api路由的疑问 HOT 1
- 建议生成的代码里面可以增加批量导入导出功能
- 建议搞个用户整合LDAP功能
- 旧 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
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.