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

管理员修改用户密码导致用户无法正常登录 #306

Closed
6 tasks done
ThorinKong opened this issue Dec 6, 2024 · 4 comments
Closed
6 tasks done

管理员修改用户密码导致用户无法正常登录 #306

ThorinKong opened this issue Dec 6, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ThorinKong
Copy link

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整浏览项目 README 和项目文档并未找到解决方案
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我将以礼貌和尊重的态度提问,不得使用不文明用语 (包括在此发布评论的所有人同样适用, 不遵守的人将被 block)
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
当管理员在后台修改用户的密码后,用户在前端登录填写新密码后页面右下角弹出登录成功弹窗,但页面仍呈现未登录状态。选择任意模型均提示“您需要登录才能使用此功能”。开启浏览器F12,登录login接口正常返回token,list接口显示message:"user not found"。重启服务后可正常登录。怀疑是token有效期之类的问题。
复现步骤

1 使用docker-compose部署服务
2 注册一个普通账户
3 使用管理员账户修改该账户的密码
4 普通账户使用新密码登录
5 普通账户无法正常使用

预期结果
普通账户能正常登录使用
日志信息

相关截图 (如果有)
image

@ThorinKong ThorinKong added the bug Something isn't working label Dec 6, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: The administrator changes the user password, causing the user to be unable to log in normally.

  • I have confirmed that there is currently no similar issue
  • I have confirmed that I have upgraded to the latest version
  • I have fully browsed the project README and project documentation and did not find a solution
  • I understand and am willing to follow up on this issue, assist in testing and provide feedback
  • I will ask questions in a polite and respectful manner, without using uncivilized language (the same applies to everyone who posts comments here, those who do not comply will be blocked)
  • I understand and acknowledge the above content, and understand that project maintainers have limited energy. Issues that do not follow the rules may be ignored or closed directly

Problem description
When the administrator changes the user's password in the background, the user logs in on the front end and fills in the new password. A login success pop-up window pops up in the lower right corner of the page, but the page is still not logged in. Selecting any model prompts "You need to log in to use this feature." Open the browser F12, log in to the login interface and return the token normally, and the list interface displays message: "user not found". You can log in normally after restarting the service. I suspect it is a problem such as the token validity period.
Steps to reproduce

1 Use docker-compose to deploy services
2 Register a normal account
3 Use the administrator account to change the password of the account
4 Log in with a new password for ordinary accounts
5 Ordinary accounts cannot be used normally

Expected results
Ordinary accounts can be logged in and used normally.
Log information
none
Relevant screenshots (if any)
image

@ThorinKong
Copy link
Author

即便先前登陆失败,经过一段时间后,用户刷新网页,可自动处于登录状态。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Even if the previous login failed, after a period of time, the user refreshes the web page and is automatically logged in.

@zmh-program
Copy link
Member

#285 will fix

@zmh-program zmh-program closed this as not planned Won't fix, can't repro, duplicate, stale Dec 14, 2024
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