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

获取token报错 #5

Open
514938963 opened this issue Jun 16, 2018 · 1 comment
Open

获取token报错 #5

514938963 opened this issue Jun 16, 2018 · 1 comment

Comments

@514938963
Copy link

{"error":"invalid_grant","error_description":"Bad credentials"}

我在数据里初始化了,两个用户。使用密码授权方式,一直报错,还请大神看看

@ChenXbFrank
Copy link

这里密码需要加密,数据库的密码,我的解决方式
image
使用BCryptPasswordEncoder加密,
$2a$10$jH.e74/Oy41OfUsSgi3KQu5MlC/9ISytTS0mMl0YiXM0RdbfijmS. 对应的密码是:123456

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