Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
25fd29c5
Commit
25fd29c5
authored
Dec 17, 2024
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化特殊字符密码修改失败问题
parent
2d6a6a16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
SysProfileController.java
...com/ruoyi/web/controller/system/SysProfileController.java
+4
-1
user.js
ruoyi-ui/src/api/system/user.js
+1
-1
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java
View file @
25fd29c5
package
com
.
ruoyi
.
web
.
controller
.
system
;
package
com
.
ruoyi
.
web
.
controller
.
system
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -87,8 +88,10 @@ public class SysProfileController extends BaseController
...
@@ -87,8 +88,10 @@ public class SysProfileController extends BaseController
*/
*/
@Log
(
title
=
"个人信息"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"个人信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"/updatePwd"
)
@PutMapping
(
"/updatePwd"
)
public
AjaxResult
updatePwd
(
String
oldPassword
,
String
newPassword
)
public
AjaxResult
updatePwd
(
@RequestBody
Map
<
String
,
String
>
params
)
{
{
String
oldPassword
=
params
.
get
(
"oldPassword"
);
String
newPassword
=
params
.
get
(
"newPassword"
);
LoginUser
loginUser
=
getLoginUser
();
LoginUser
loginUser
=
getLoginUser
();
String
userName
=
loginUser
.
getUsername
();
String
userName
=
loginUser
.
getUsername
();
String
password
=
loginUser
.
getPassword
();
String
password
=
loginUser
.
getPassword
();
...
...
ruoyi-ui/src/api/system/user.js
View file @
25fd29c5
...
@@ -96,7 +96,7 @@ export function updateUserPwd(oldPassword, newPassword) {
...
@@ -96,7 +96,7 @@ export function updateUserPwd(oldPassword, newPassword) {
return
request
({
return
request
({
url
:
'/system/user/profile/updatePwd'
,
url
:
'/system/user/profile/updatePwd'
,
method
:
'put'
,
method
:
'put'
,
params
:
data
data
:
data
})
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment