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

请问怎么在数据库批量修改用户的密码 #35

Closed
maidoujiushizhu opened this issue Sep 22, 2020 · 1 comment
Closed

请问怎么在数据库批量修改用户的密码 #35

maidoujiushizhu opened this issue Sep 22, 2020 · 1 comment

Comments

@maidoujiushizhu
Copy link

请问怎么在数据库批量修改用户的密码,并加密

@yangzongzhuan
Copy link
Owner

执行方法 com.ruoyi.framework.shiro.service.SysPasswordService.encryptPassword 传入账号密码生成即可。
new PasswordService().encryptPassword("admin", "admin123", "");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants