feat:
1. fix
This commit is contained in:
@@ -95,7 +95,7 @@ public class Oauth2SmsEndpoint {
|
|||||||
|
|
||||||
@RedisDebounce(key = "sms:debounce", param = "#phone", interval = 60, includeRemainingTime = true, message = "短信发送过于频繁")
|
@RedisDebounce(key = "sms:debounce", param = "#phone", interval = 60, includeRemainingTime = true, message = "短信发送过于频繁")
|
||||||
@PostMapping("/oauth/sms/send-register")
|
@PostMapping("/oauth/sms/send-register")
|
||||||
public R sendRegister(@RequestParam String tenantId, @RequestParam String phone) {
|
public R sendRegister(@RequestParam String phone) {
|
||||||
// 校验手机加密认证,防止恶意发送验证码
|
// 校验手机加密认证,防止恶意发送验证码
|
||||||
String decryptedPhone = SM2Util.decrypt(phone, properties.getPublicKey(), properties.getPrivateKey());
|
String decryptedPhone = SM2Util.decrypt(phone, properties.getPublicKey(), properties.getPrivateKey());
|
||||||
if (StringUtil.isBlank(decryptedPhone)) {
|
if (StringUtil.isBlank(decryptedPhone)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user