All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.shoulder.security.code.email.config.EmailCodeProperties Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.2
Show newest version
package org.shoulder.security.code.email.config;

import org.shoulder.code.consts.ValidateCodeConsts;
import org.shoulder.code.propertities.BaseValidateCodeProperties;
import org.shoulder.security.SecurityConst;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.LinkedList;
import java.util.List;

/**
 * 验证码配置项
 *
 * @author lym
 */
@ConfigurationProperties(prefix = ValidateCodeConsts.CONFIG_PREFIX + ".email")
public class EmailCodeProperties extends BaseValidateCodeProperties {

    public EmailCodeProperties() {
        setParameterName(ValidateCodeConsts.EMAIL);
        List defaultValidateUrls = new LinkedList<>();
        // 默认email登录 url 需要校验email验证码,可通过修改 "shoulder.security.validate-code.email.urls" 来修改/新增需要校验的路径
        defaultValidateUrls.add(SecurityConst.URL_AUTHENTICATION_EMAIL);
        setUrls(defaultValidateUrls);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy