zouxuan 5 年 前
コミット
7c92dc32bd

+ 1 - 1
mec-auth/mec-auth-server/src/main/java/com/ym/mec/auth/core/filter/PhoneLoginAuthenticationFilter.java

@@ -46,7 +46,7 @@ public class PhoneLoginAuthenticationFilter extends AbstractAuthenticationProces
 		loginEntity.setPhone(principal);
 		loginEntity.setSmsCode(obtainParameter(request, SPRING_SECURITY_RESTFUL_VERIFY_CODE_KEY));
 		loginEntity.setIsRegister(obtainParameter(request, IS_REGISTER_PARAMETER));
-		authRequest = new PhoneAuthenticationToken(principal, loginEntity);
+		authRequest = new PhoneAuthenticationToken(SecurityConstants.PHONE_PRINCIPAL_PREFIX + principal, loginEntity);
 
 		// Allow subclasses to set the "details" property
 		setDetails(request, authRequest);