feat: 邮箱验证码调整
This commit is contained in:
@@ -115,7 +115,7 @@ public class Constants
|
||||
/**
|
||||
* 邮箱验证码有效期(分钟)
|
||||
*/
|
||||
public static final long MAIL_CAPTCHA_EXPIRATION = 30;
|
||||
public static final long MAIL_CAPTCHA_EXPIRATION = 10;
|
||||
|
||||
/**
|
||||
* 资源映射路径 前缀
|
||||
|
||||
@@ -51,4 +51,9 @@ public class SecurityConstants
|
||||
* 角色权限
|
||||
*/
|
||||
public static final String ROLE_PERMISSION = "role_permission";
|
||||
|
||||
/**
|
||||
* 多语言
|
||||
*/
|
||||
public static final String CONTENT_LANGUAGE = "content-language";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package org.wfc.common.core.exception;
|
||||
|
||||
import org.wfc.common.core.exception.user.UserException;
|
||||
|
||||
/**
|
||||
* 验证码错误异常类
|
||||
*
|
||||
* @author wfc
|
||||
*/
|
||||
public class VerificationCodeException extends UserException
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public VerificationCodeException() {
|
||||
super("email.code.error");
|
||||
}
|
||||
|
||||
public VerificationCodeException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
}
|
||||
@@ -51,6 +51,7 @@ rate.limiter.message=Visit too frequently, please try again later
|
||||
sms.code.not.blank=Sms code cannot be blank
|
||||
sms.code.retry.limit.count=Sms code input error {0} times
|
||||
sms.code.retry.limit.exceed=Sms code input error {0} times, account locked for {1} minutes
|
||||
email.code.error=Verification code error
|
||||
email.code.not.blank=Email code cannot be blank
|
||||
email.code.retry.limit.count=Email code input error {0} times
|
||||
email.code.retry.limit.exceed=Email code input error {0} times, account locked for {1} minutes
|
||||
|
||||
@@ -51,6 +51,7 @@ rate.limiter.message=访问过于频繁,请稍候再试
|
||||
sms.code.not.blank=短信验证码不能为空
|
||||
sms.code.retry.limit.count=短信验证码输入错误{0}次
|
||||
sms.code.retry.limit.exceed=短信验证码输入错误{0}次,帐户锁定{1}分钟
|
||||
email.code.error=邮箱验证码错误
|
||||
email.code.not.blank=邮箱验证码不能为空
|
||||
email.code.retry.limit.count=邮箱验证码输入错误{0}次
|
||||
email.code.retry.limit.exceed=邮箱验证码输入错误{0}次,帐户锁定{1}分钟
|
||||
|
||||
Reference in New Issue
Block a user