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