Commit 46a765cf by guoxuejian

Merge branch 'prod' of http://git.raytue.com/GeoFly/GeoFlyApi into prod

parents 5051e14c d7411452
......@@ -313,10 +313,14 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
return HttpResultResponse.success();
}
/**
*
* @param targetUserId user whose password will be reset
* @param param ChangePasswordParam containing newPassword
* @return
*/
@Override
public HttpResultResponse<Object> resetPassword(String targetUserId, ChangePasswordParam param) {
// Only admins may reset other users' passwords
aboveAdminRoleAndThrowError();
if (!org.springframework.util.StringUtils.hasText(param.getNewPassword())) {
return HttpResultResponse.error("New password must not be empty");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment