Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
cash-loan-flow-boss
Commits
5b10b1a0
Commit
5b10b1a0
authored
Mar 12, 2020
by
王向伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改密码 校验新旧密码是否相同
parent
37241b97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
UserServiceImpl.java
...up/cashloanflowboss/api/user/service/UserServiceImpl.java
+5
-0
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/user/service/UserServiceImpl.java
View file @
5b10b1a0
...
@@ -335,6 +335,11 @@ public class UserServiceImpl implements UserService {
...
@@ -335,6 +335,11 @@ public class UserServiceImpl implements UserService {
String
newPassword
=
MD5Tools
.
md5
(
updatePasswordParam
.
getNewPassword
());
String
newPassword
=
MD5Tools
.
md5
(
updatePasswordParam
.
getNewPassword
());
String
oldPassword
=
user
.
getPassword
();
if
(
newPassword
.
equals
(
oldPassword
)){
return
Result
.
buildFail
(
"新密码和旧密码相同"
);
}
user
.
setPassword
(
newPassword
);
user
.
setPassword
(
newPassword
);
userRepository
.
save
(
user
);
userRepository
.
save
(
user
);
return
Result
.
buildSuccess
(
true
);
return
Result
.
buildSuccess
(
true
);
...
...
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