左程云左神_算法與數(shù)據(jù)結(jié)構(gòu)進(jìn)階班
2022-11-30 22:00 作者:janet19961217 | 我要投稿
Override
? ?public Authentication authenticate(Authentication authentication) {
? ? ? ?MobilePasswordAuthenticationToken authenticationToken = (MobilePasswordAuthenticationToken) authentication;
? ? ? ?String mobile = (String) authenticationToken.getPrincipal();
? ? ? ?String password = (String) authenticationToken.getCredentials();
? ? ? ?SecurityUser user = userDetailsService.loadUserByMobile(mobile);
? ? ? ?if (user == null) {
標(biāo)簽: