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

xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new 5e748ab4a [ISSUE #3381] fix change pasword error (#3382)
5e748ab4a is described below

commit 5e748ab4ac2c117693ed490396f5a3af3c2c5b2f
Author: likeguo <[email protected]>
AuthorDate: Thu May 5 17:54:48 2022 +0800

    [ISSUE #3381] fix change pasword error (#3382)
    
    * fixbug/pg script error
    
    * fixbug/pg script error
---
 .../java/org/apache/shenyu/admin/controller/DashboardUserController.java | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/DashboardUserController.java
 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/DashboardUserController.java
index 449b91765..297525c3d 100644
--- 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/DashboardUserController.java
+++ 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/DashboardUserController.java
@@ -137,7 +137,6 @@ public class DashboardUserController {
                                                          message = "user is 
not found") final String id,
                                                  @Valid @RequestBody final 
DashboardUserDTO dashboardUserDTO) {
         dashboardUserDTO.setId(id);
-        Assert.notNull(dashboardUserDTO.getRole(), 
ShenyuResultMessage.PARAMETER_ERROR + ": role is not null");
         if (StringUtils.isNotBlank(dashboardUserDTO.getPassword())) {
             
dashboardUserDTO.setPassword(ShaUtils.shaEncryption(dashboardUserDTO.getPassword()));
         }

Reply via email to