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

[ bug ]用户注册时如默认资源组已分配用户,则新用户登录失败 #291

Closed
a5546868001 opened this issue Jun 24, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@a5546868001
Copy link

a5546868001 commented Jun 24, 2019

重现步骤

1.新建资源组,并创建用户赋权给当前资源组
2.设置新建资源组为默认资源组
3.创建新用户
4.登陆新用户是,提示[ERROR]- Internal Server Error: /authenticate/。唯一索引冲突

期待结果和实际结果

期待结果:

实际结果:

截图

image

错误日志

/downloads/log/archery.log
docker logs archery -f --tail=10

版本信息

应用版本/分支:

部署方式:Docker

一般建议使用release版本,其他都是非稳定版本

  • 应用版本/分支:Release v1.6.3
  • 部署方式:Docker
@hhyo hhyo added the bug Something isn't working label Jun 24, 2019
@hhyo
Copy link
Owner

hhyo commented Jun 24, 2019

感谢反馈
可参考update-or-create的文档,修改auth.py 后给我们提交pr

@a5546868001
Copy link
Author

改好了,还不会提交pr

@LeoQuote
Copy link
Collaborator

init_user(new_user)

把这一行的init去掉,重复init了

一会回去我来做。

@hhyo
Copy link
Owner

hhyo commented Jun 24, 2019

注册后不能登录?
这个问题反馈的应该是后台添加用户时就已经关联了资源组,但是用户没有登录过,所以登录时间为空,登录时重复初始化就会报错

@hhyo
Copy link
Owner

hhyo commented Jun 24, 2019

@a5546868001 pr的话网上有挺多教程的,可以参考下

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

3 participants