完善验证码和登录的接口
This commit is contained in:
@@ -218,4 +218,13 @@ public class BusinessConstants {
|
||||
* */
|
||||
//session的生命周期,秒
|
||||
public static final Long MAX_SESSION_IN_SECONDS=60*60*24*3L;
|
||||
|
||||
/**
|
||||
* 验证码 redis key
|
||||
*/
|
||||
public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
|
||||
/**
|
||||
* 验证码有效期(分钟)
|
||||
*/
|
||||
public static final Integer CAPTCHA_EXPIRATION = 2;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,12 @@ public class ExceptionConstants {
|
||||
//当前机构已经存在经理
|
||||
public static final int USER_LEADER_IS_EXIST_CODE = 500009;
|
||||
public static final String USER_LEADER_IS_EXIST_MSG = "抱歉,当前机构已经存在经理";
|
||||
//验证码错误
|
||||
public static final int USER_JCAPTCHA_ERROR_CODE = 500010;
|
||||
public static final String USER_JCAPTCHA_ERROR_MSG = "验证码错误";
|
||||
//验证码已失效
|
||||
public static final int USER_JCAPTCHA_EXPIRE_CODE = 500011;
|
||||
public static final String USER_JCAPTCHA_EXPIRE_MSG = "验证码已失效";
|
||||
|
||||
/**
|
||||
* 角色信息
|
||||
|
||||
Reference in New Issue
Block a user