|
|
@ -12,6 +12,7 @@ import com.ccsens.util.CodeEnum; |
|
|
|
import com.ccsens.util.JsonResponse; |
|
|
|
import com.ccsens.util.JwtUtil; |
|
|
|
import com.ccsens.util.WebConstant; |
|
|
|
import com.ccsens.util.exception.BaseException; |
|
|
|
import io.jsonwebtoken.Claims; |
|
|
|
import io.jsonwebtoken.ExpiredJwtException; |
|
|
|
import io.jsonwebtoken.SignatureException; |
|
|
@ -76,8 +77,8 @@ public class UserController { |
|
|
|
case Email: |
|
|
|
case Account: { |
|
|
|
if (StrUtil.isEmpty(credential)) { |
|
|
|
String msg = "credential is required when type is %1$d(%2$s)"; |
|
|
|
throw new UserLoginException(-2, String.format(msg, identify_type.value, identify_type.phase)); |
|
|
|
String msg = "请输入%1$"; |
|
|
|
throw new UserLoginException(-2, String.format(msg,identify_type.phase)); |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|