diff --git a/src/main/java/com/example/jieyue/user/service/UserInfoService.java b/src/main/java/com/example/jieyue/user/service/UserInfoService.java index 905f97e..01759c1 100644 --- a/src/main/java/com/example/jieyue/user/service/UserInfoService.java +++ b/src/main/java/com/example/jieyue/user/service/UserInfoService.java @@ -59,7 +59,7 @@ public class UserInfoService { } } if (newPwd.equals("")){ - newPwd = oldPwd; + newPwd = user.getPassword(); }else{ newPwd = DigestUtils.md5DigestAsHex(newPwd.getBytes()); } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index dfa07b7..6e9a061 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,5 +1,5 @@ -# site-url: 127.0.0.1 -site-url: 47.115.118.34 +site-url: 127.0.0.1 +# site-url: 47.115.118.34 server: port: 80 tomcat: diff --git a/src/main/resources/templates/user/home/index.html b/src/main/resources/templates/user/home/index.html index 2934d91..6f17101 100644 --- a/src/main/resources/templates/user/home/index.html +++ b/src/main/resources/templates/user/home/index.html @@ -1921,6 +1921,7 @@