保誠-保戶業務員媒合平台
wayne
2022-02-18 ae4db5435180c44b37f521c463b17f2023ac1d8c
pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java
@@ -95,7 +95,7 @@
        Consultant consultant = consultantRepository.findOneByAgentNo(account).orElseThrow(() -> new UsernameNotFoundException("該顧問資料並不存在於媒合平台系統中"));
        if(consultant.getStatus() == DISABLE) {
            throw new ConsultantDisableException();
            throw new ConsultantDisableException("顧問帳號目前停用中");
        }
        List<GrantedAuthority> grantedAuths = Arrays.asList(new SimpleGrantedAuthority("ROLE_USER"));