Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登陆通过后,提示非法请求 #61

Open
rinyshen opened this issue Mar 10, 2021 · 6 comments
Open

登陆通过后,提示非法请求 #61

rinyshen opened this issue Mar 10, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@rinyshen
Copy link

rinyshen commented Mar 10, 2021

版本 v1.1.7

问题描述

创建用户是手动在数据库里面插入,登陆验证通过,成功获取jwttoken,但是在如下图的代码中失败

enforcer := model.GetEnforcer()

function 的名称是checkAuth

@rinyshen rinyshen added the bug Something isn't working label Mar 10, 2021
@labulakalia
Copy link
Owner

@rinyshen 原来是这样,创建用户不需要自已手动插入的,安装完系统打开网页会让你做一次初始化的,因为创建一个用户不仅是在用户表创建数据,还要在casbin_rule这个表也会配置相应的权限的,你只创建了用户但是没有权限所以就会报错了

@rinyshen
Copy link
Author

是的,我也是觉得是这样,就是没有出现配置用户的页面,导致我没办法只能手动加了一个,你能告诉我如何配置一个用户吗,或者打开那个页面

@rinyshen
Copy link
Author

另外,这个系统有人在生产环境使用过吗?

@rinyshen
Copy link
Author

您好,已经解决,我已经手动插入用户权限,想问下,这个通知用户不能采用变量吗?

@labulakalia
Copy link
Owner

@rinyshen 现在还不行

@rinyshen
Copy link
Author

这个开源是否已经有在生产环境使用的先例

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants