-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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:修改头像并提交后,密码也会被改了 #538
Comments
请完整的描述您的问题! |
后台账户登录后,修改账户资料那里,剪裁变更头像并提交后,当前账户的密码也被改了。 |
最新版本吗? |
我也发现这问题了,更新头像后,就无法登陆了 |
我也遇到了,是gorm 更新结构体的所有字段覆盖了 |
//密码长度小于60是没有加密过的密码,更新前需要加密 |
导致这个问题的原因是更新用户任何信息都是全量更新,而更新前埋了一个钩子对密码进行了一次加密。这样就造成了二次加密 |
RT
The text was updated successfully, but these errors were encountered: