feat: update
This commit is contained in:
@@ -21,7 +21,6 @@ import com.schisandra.auth.domain.service.SchisandraAuthRolePermissionDomainServ
|
||||
import com.schisandra.auth.domain.service.SchisandraAuthUserDomainService;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
@@ -258,7 +257,7 @@ public class SchisandraAuthUserController {
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 找回密码
|
||||
* @description: 重置密码
|
||||
* @param: [schisandraAuthUserDTO]
|
||||
* @return: com.schisandra.auth.common.entity.CaptchaResult
|
||||
* @author zlg
|
||||
|
@@ -65,8 +65,8 @@ public class SchisandraSmsController {
|
||||
}
|
||||
SmsResponse smsResponse = SmsFactory.getSmsBlend(configId).sendMessage(phone, code);
|
||||
if (smsResponse.isSuccess()) {
|
||||
redisUtil.setNx(prefix, code, 60L * 5, SECONDS);
|
||||
return CaptchaResult.ok("短信发送成功,5 分钟内有效,请注意查收!");
|
||||
redisUtil.setNx(prefix, code, 60L, SECONDS);
|
||||
return CaptchaResult.ok("短信发送成功,1 分钟内有效,请注意查收!");
|
||||
} else {
|
||||
return CaptchaResult.fail("短信发送失败,请重试!");
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
server:
|
||||
port: 80
|
||||
port: 3010
|
||||
spring:
|
||||
# redis配置
|
||||
redis:
|
||||
|
Reference in New Issue
Block a user