Skip to content

Commit

Permalink
feat:oauth2 增加密码模式 #10663
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Sep 26, 2024
1 parent aefcb65 commit 970b815
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Oauth2AccessTokenService(
clientId = clientId,
refreshToken = refreshToken,
userName = userName,
passWord = passWord?.apply { AESUtil.encrypt(aesKey, passWord) },
passWord = passWord?.let { AESUtil.encrypt(aesKey, passWord) },
grantType = grantType
)
}
Expand All @@ -64,7 +64,7 @@ class Oauth2AccessTokenService(
dslContext = dslContext,
clientId = clientId,
userName = userName,
passWord = passWord?.apply { AESUtil.encrypt(aesKey, passWord) },
passWord = passWord?.let { AESUtil.encrypt(aesKey, passWord) },
grantType = grantType,
accessToken = accessToken,
refreshToken = refreshToken,
Expand Down

0 comments on commit 970b815

Please sign in to comment.