Skip to content

Commit

Permalink
Winmedio.net: implement checkAccountData
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed Apr 25, 2018
1 parent 338ad92 commit 5667fc4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ private void login(Account account) throws IOException, JSONException, OpacError
getDefaultEncoding()));

if (!response.optString("success", "0").equals("1")) {
throw new OpacErrorException("Benutzer-Nr. und/oder Kennwort sind falsch.");
throw new OpacErrorException(
stringProvider.getString(StringProvider.WRONG_LOGIN_DATA));
}

this.sessionId = response.getString("sessionid");
Expand Down Expand Up @@ -696,8 +697,7 @@ protected String getDefaultEncoding() {
@Override
public void checkAccountData(Account account) throws IOException,
JSONException, OpacErrorException {
// TODO Auto-generated method stub

login(account);
}

@Override
Expand Down

0 comments on commit 5667fc4

Please sign in to comment.