使用验证码登录

This commit is contained in:
2023-02-23 14:03:51 +08:00
parent f5fb47d585
commit 22fa11bac6
7 changed files with 32 additions and 37 deletions

View File

@@ -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值
*/