Skip to content

Commit

Permalink
cgeo#6259 reset cookies on GCLogin failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorch committed Jan 19, 2018
1 parent 5ec4fcb commit de1e916
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main/src/cgeo/geocaching/connector/gc/GCLogin.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ protected StatusCode login(final boolean retry) {
@Override
@NonNull
protected StatusCode login(final boolean retry, @NonNull final Credentials credentials) {
final StatusCode status = loginInternal(retry, credentials);
if (status != StatusCode.NO_ERROR) {
resetLoginStatus();
}
return status;
}

private StatusCode loginInternal(final boolean retry, @NonNull final Credentials credentials) {
if (credentials.isInvalid()) {
clearLoginInfo();
Log.w("Login.login: No login information stored");
Expand Down

0 comments on commit de1e916

Please sign in to comment.