You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by GitBox <gi...@apache.org> on 2022/06/24 09:10:46 UTC

[GitHub] [incubator-linkis] casionone commented on a diff in pull request #2336: Fix the license of ras.js

casionone commented on code in PR #2336:
URL: https://github.com/apache/incubator-linkis/pull/2336#discussion_r905875764


##########
web/src/dss/view/login/index.vue:
##########
@@ -117,22 +117,23 @@ export default {
           this.loginForm.user = this.loginForm.user.toLocaleLowerCase();
           // 需要判断是否需要给密码加密
           let password = this.loginForm.password;
-          let params = {};
-          if (this.publicKeyData && this.publicKeyData.enableLoginEncrypt) {
-            const key = RSA.getPublicKey(`-----BEGIN PUBLIC KEY-----${this.publicKeyData.publicKey}-----END PUBLIC KEY-----`);
-            password = RSA.encrypt(this.loginForm.password, key);
-            params = {
-              userName: this.loginForm.user,
-              passwdEncrypt: password,

Review Comment:
   The server can be compatible with these two parameter names [passwdEncrypt/password]
   ![企业微信截图_16560616155793](https://user-images.githubusercontent.com/7869972/175503552-594de1e5-1560-4db2-a5ac-06a619c4297e.png)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org