Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
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
1
Merge Requests
1
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
poc
poc-api
Commits
a090f157
You need to sign in or sign up before continuing.
Commit
a090f157
authored
Apr 11, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 忘记密码
parent
cb920656
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
BizMemberInfoRest.java
src/main/java/cn/com/poc/user/rest/BizMemberInfoRest.java
+4
-1
BizMemberInfoRestImpl.java
...java/cn/com/poc/user/rest/impl/BizMemberInfoRestImpl.java
+6
-5
No files found.
src/main/java/cn/com/poc/user/rest/BizMemberInfoRest.java
View file @
a090f157
...
...
@@ -36,8 +36,11 @@ public interface BizMemberInfoRest extends BaseRest {
/**
* 用户忘记密码
*/
// @Permission(Access.Anonymous)
// void forgetMemberPassword(@RequestBody MemberPasswordRequestDto memberPasswordRequestDto) throws Exception;
@Permission
(
Access
.
Anonymous
)
void
forgetMemberPassword
(
@Request
Body
MemberPasswordRequestDto
memberPasswordRequestDto
)
throws
Exception
;
void
forgetMemberPassword
(
@Request
Param
String
account
,
@RequestParam
String
password
,
@RequestParam
String
authCode
)
throws
Exception
;
/**
* 获取用户信息
...
...
src/main/java/cn/com/poc/user/rest/impl/BizMemberInfoRestImpl.java
View file @
a090f157
...
...
@@ -93,16 +93,17 @@ public class BizMemberInfoRestImpl implements BizMemberInfoRest {
memberInfoService
.
configureMemberPassword
(
memberPasswordRequestDto
);
}
/**
* 用户忘记密码
*
* @param memberPasswordRequestDto
*/
@Override
public
void
forgetMemberPassword
(
MemberPasswordRequestDto
memberPasswordRequestDto
)
throws
Exception
{
Assert
.
notBlank
(
memberPasswordRequestDto
.
getAccount
());
Assert
.
notBlank
(
memberPasswordRequestDto
.
getPassword
());
Assert
.
notBlank
(
memberPasswordRequestDto
.
getAuthCode
());
public
void
forgetMemberPassword
(
String
account
,
String
password
,
String
authCode
)
throws
Exception
{
MemberPasswordRequestDto
memberPasswordRequestDto
=
new
MemberPasswordRequestDto
();
memberPasswordRequestDto
.
setAccount
(
account
);
memberPasswordRequestDto
.
setPassword
(
password
);
memberPasswordRequestDto
.
setAuthCode
(
authCode
);
memberInfoService
.
configureMemberPassword
(
memberPasswordRequestDto
);
}
...
...
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