Skip to content
Permalink
Browse files

indentation fix

  • Loading branch information
jef-n committed Feb 4, 2019
1 parent 89fce33 commit 95e216ca167c22534b10c3f0059167683a87fce8
Showing with 10 additions and 10 deletions.
  1. +10 −10 src/app/qgisapp.cpp
@@ -13658,9 +13658,9 @@ void QgisApp::namAuthenticationRequired( QNetworkReply *inReply, QAuthenticator
for ( ;; )
{
bool ok = QgsCredentials::instance()->get(
QStringLiteral( "%1 at %2" ).arg( auth->realm(), reply->url().host() ),
username, password,
tr( "Authentication required" ) );
QStringLiteral( "%1 at %2" ).arg( auth->realm(), reply->url().host() ),
username, password,
tr( "Authentication required" ) );
if ( !ok )
return;

@@ -13671,16 +13671,16 @@ void QgisApp::namAuthenticationRequired( QNetworkReply *inReply, QAuthenticator
break;

// credentials didn't change - stored ones probably wrong? clear password and retry
QgsCredentials::instance()->put(
QStringLiteral( "%1 at %2" ).arg( auth->realm(), reply->url().host() ),
username, QString() );
QgsCredentials::instance()->put(
QStringLiteral( "%1 at %2" ).arg( auth->realm(), reply->url().host() ),
username, QString() );
}

// save credentials
QgsCredentials::instance()->put(
QStringLiteral( "%1 at %2" ).arg( auth->realm(), reply->url().host() ),
username, password
);
QgsCredentials::instance()->put(
QStringLiteral( "%1 at %2" ).arg( auth->realm(), reply->url().host() ),
username, password
);

auth->setUser( username );
auth->setPassword( password );

0 comments on commit 95e216c

Please sign in to comment.
You can’t perform that action at this time.