使用验证码登录
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.zscat.mallplus.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
|
||||
/**
|
||||
* @Author dimengzhe
|
||||
@@ -13,6 +14,9 @@ public class SmsEnum {
|
||||
*/
|
||||
public static final Long APP_LOGIN_CODE_TIME_LIMIT = 300L;
|
||||
|
||||
@Value("${redis.key.prefix.loginCode}")
|
||||
private static String REDIS_KEY_PREFIX_LOGIN_CODE;
|
||||
|
||||
|
||||
/**
|
||||
* 发送验证码
|
||||
@@ -22,9 +26,10 @@ public class SmsEnum {
|
||||
/**
|
||||
* 登录
|
||||
*/
|
||||
LOGIN("1", "loginCode","登录"),
|
||||
LOGIN("1", REDIS_KEY_PREFIX_LOGIN_CODE,"登录"),
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
* code值
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user