Archived
0

don't save login in field

This commit is contained in:
Mo
2015-07-19 12:47:33 +03:00
committed by iMoHax
parent 37e147055f
commit 0ab1490d1c
2 changed files with 7 additions and 9 deletions

View File

@@ -22,18 +22,20 @@ public class EDSessionDemo {
public static void main(String args[]) throws Exception {
LOG.info("Test ED Companion connect");
EDSession edSession = new EDSession("frontier@mail.ru","elite");
EDSession edSession = new EDSession();
if (edSession.getLastStatus() == ED_SESSION_STATUS.OK){
LOG.info("Check get profile");
edSession.readProfile(s ->{});
}
if (edSession.getLastStatus() == ED_SESSION_STATUS.LOGIN_REQUIRED) {
edSession.login();
String login = readLine("Login:");
String pass = readLine("Password:");
edSession.login(login, pass);
if (edSession.getLastStatus() == ED_SESSION_STATUS.VERIFICATION_REQUIRED) {
LOG.info("Check verification");
String code = readLine("Verify code:");
edSession.submitVerifyCode(code);
edSession.login();
edSession.login(login, pass);
}
if (edSession.getLastStatus() == ED_SESSION_STATUS.OK) {
LOG.info("Check get profile");