移除短信默认配置
This commit is contained in:
parent
3bcfe7df13
commit
7bb356872c
|
@ -1,39 +0,0 @@
|
||||||
package net.maku.security.config;
|
|
||||||
|
|
||||||
import net.maku.api.module.message.SmsApi;
|
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 登录配置信息
|
|
||||||
*
|
|
||||||
* @author 阿沐 babamu@126.com
|
|
||||||
* <a href="https://maku.net">MAKU</a>
|
|
||||||
*/
|
|
||||||
@Configuration
|
|
||||||
public class LoginConfig {
|
|
||||||
|
|
||||||
@Bean
|
|
||||||
@ConditionalOnMissingBean
|
|
||||||
SmsApi smsApi() {
|
|
||||||
return new SmsApi() {
|
|
||||||
@Override
|
|
||||||
public boolean send(String mobile, Map<String, String> params) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean sendCode(String mobile, String key, String value) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean verifyCode(String mobile, String code) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user