Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeoFlyApi
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GeoFly
GeoFlyApi
Commits
46a765cf
Commit
46a765cf
authored
Mar 16, 2026
by
guoxuejian
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'prod' of
http://git.raytue.com/GeoFly/GeoFlyApi
into prod
parents
5051e14c
d7411452
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
sample/src/main/java/com/dji/sample/manage/service/impl/UserServiceImpl.java
+6
-2
No files found.
sample/src/main/java/com/dji/sample/manage/service/impl/UserServiceImpl.java
View file @
46a765cf
...
@@ -313,10 +313,14 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
...
@@ -313,10 +313,14 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
return
HttpResultResponse
.
success
();
return
HttpResultResponse
.
success
();
}
}
/**
*
* @param targetUserId user whose password will be reset
* @param param ChangePasswordParam containing newPassword
* @return
*/
@Override
@Override
public
HttpResultResponse
<
Object
>
resetPassword
(
String
targetUserId
,
ChangePasswordParam
param
)
{
public
HttpResultResponse
<
Object
>
resetPassword
(
String
targetUserId
,
ChangePasswordParam
param
)
{
// Only admins may reset other users' passwords
aboveAdminRoleAndThrowError
();
if
(!
org
.
springframework
.
util
.
StringUtils
.
hasText
(
param
.
getNewPassword
()))
{
if
(!
org
.
springframework
.
util
.
StringUtils
.
hasText
(
param
.
getNewPassword
()))
{
return
HttpResultResponse
.
error
(
"New password must not be empty"
);
return
HttpResultResponse
.
error
(
"New password must not be empty"
);
...
...
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