You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2020/04/29 13:24:51 UTC

[kylin] branch 3.0.x updated: KYLIN-4470 The user cannot log in kylin normally after being assigned to a group

This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch 3.0.x
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/3.0.x by this push:
     new f242808  KYLIN-4470 The user cannot log in kylin normally after being assigned to a group
f242808 is described below

commit f242808b7bfab7f80c325791d20de57257b2b530
Author: yaqian.zhang <59...@qq.com>
AuthorDate: Sun Apr 26 14:37:44 2020 +0800

    KYLIN-4470 The user cannot log in kylin normally after being assigned to a group
---
 .../src/main/java/org/apache/kylin/rest/controller/UserController.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server-base/src/main/java/org/apache/kylin/rest/controller/UserController.java b/server-base/src/main/java/org/apache/kylin/rest/controller/UserController.java
index 2ff53f2..dc7f5f3 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/controller/UserController.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/controller/UserController.java
@@ -192,6 +192,8 @@ public class UserController extends BasicController {
         }
         logger.info("Saving {}", user);
 
+        user.setPassword(pwdEncode(user.getPassword()));
+
         completeAuthorities(user);
         userService.updateUser(user);
         return get(userName);