You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2021/07/30 10:27:04 UTC

[incubator-shenyu] branch master updated: fix bug (#1834)

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 ecde8f3  fix bug (#1834)
ecde8f3 is described below

commit ecde8f362e74b5714b4c1ed84ed8ab11c092a10f
Author: dengliming <li...@gmail.com>
AuthorDate: Fri Jul 30 18:26:59 2021 +0800

    fix bug (#1834)
---
 .../org/apache/shenyu/admin/controller/DashboardUserController.java     | 2 +-
 1 file changed, 1 insertion(+), 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 435a892..41c09d3 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
@@ -107,7 +107,7 @@ public class DashboardUserController {
     @PostMapping("")
     public ShenyuAdminResult createDashboardUser(@Valid @RequestBody final DashboardUserDTO dashboardUserDTO) {
         String key = secretProperties.getKey();
-        String iv = secretProperties.getKey();
+        String iv = secretProperties.getIv();
         return Optional.ofNullable(dashboardUserDTO).map(item -> {
             item.setPassword(AesUtils.aesEncryption(item.getPassword(), key, iv));
             Integer createCount = dashboardUserService.createOrUpdate(item);