Skip to content

Commit

Permalink
Fixes #311
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyLB committed Jul 7, 2019
1 parent 5fad0d1 commit 03d59ed
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions piwigo/Login/LoginViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,12 @@ -(void)launchLogin
// If Piwigo server requires HTTP basic authentication, ask credentials
if ([Model sharedInstance].performedHTTPauthentication){
// Without prior knowledge, the app already tried Piwigo credentials
// But unsuccessfully, so must now request HTTP credentials
// but unsuccessfully, so must now request HTTP credentials
[self requestHttpCredentialsAfterError:error];
} else {
// HTTPS login request failed ?
if ([[Model sharedInstance].serverProtocol isEqualToString:@"https://"])
if ([[Model sharedInstance].serverProtocol isEqualToString:@"https://"] &&
![Model sharedInstance].userCancelledCommunication)
{
// Suggest HTTP connection if HTTPS attempt failed
[self tryNonSecuredAccessAfterError:error];
Expand Down Expand Up @@ -752,10 +753,6 @@ - (void)cancelLoggingIn
if (hud) {
// Update text
hud.detailsLabel.text = NSLocalizedString(@"internetCancellingConnection_button", @"Cancelling Connection…");;

// Reconfigure the button
[hud.button isSelected];
[hud.button removeTarget:self action:@selector(hideLoading) forControlEvents:UIControlEventTouchUpInside];
}
});
}
Expand Down

0 comments on commit 03d59ed

Please sign in to comment.