Testing user account alfresco CMIS if exist
I am working in a JavaEE project and i want simply see if the user ho logged in with a username and a password have an account in Alfresco , I user the getSession method but it doesn't return if the username and password are wrong (doesn't exist). private static Session getSession(String serverUrl, String username, String password) { SessionFactory sessionFactory = SessionFactoryImpl.newInstance(); Map<String, String> params = new HashMap<>(); params.put(SessionParameter.USER, username); params.put(SessionParameter.PASSWORD, password); params.put(SessionParameter.ATOMPUB_URL, serverUrl);