From 299df8aa7e8fc1370f152538d65e0231433de142 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Fri, 24 Sep 2021 14:41:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=A0=87=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oauth2/server/service/impl/OAuth2ClientServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-oauth2-server/src/main/java/ink/wgink/login/oauth2/server/service/impl/OAuth2ClientServiceImpl.java b/login-oauth2-server/src/main/java/ink/wgink/login/oauth2/server/service/impl/OAuth2ClientServiceImpl.java index a90d4c6f..43d821f6 100644 --- a/login-oauth2-server/src/main/java/ink/wgink/login/oauth2/server/service/impl/OAuth2ClientServiceImpl.java +++ b/login-oauth2-server/src/main/java/ink/wgink/login/oauth2/server/service/impl/OAuth2ClientServiceImpl.java @@ -48,7 +48,7 @@ public class OAuth2ClientServiceImpl extends DefaultBaseService implements IOAut @Override public void save(OAuth2ClientVO oauth2ClientVO) throws SaveException { - oauth2ClientVO.setClientSecret(passwordEncoder.encode(oauth2ClientVO.getClientSecret())); + oauth2ClientVO.setClientSecret("{bcrypt}" + passwordEncoder.encode(oauth2ClientVO.getClientSecret())); Map params = HashMapUtil.beanToMap(oauth2ClientVO); setSaveInfo(params); oauth2ClientDao.save(params);