[bugfix] Fixes WFS HTTP auth basic username/password

Fixes #15360 and #15597
This commit is contained in:
Alessandro Pasotti 2017-01-17 13:57:23 +01:00
parent b119744773
commit c80e5d131d

View File

@ -153,7 +153,7 @@ QgsDataSourceUri::QgsDataSourceUri( QString uri )
{
mAuthConfigId = pval;
}
else if ( pname == QLatin1String( "user" ) )
else if ( pname == QLatin1String( "user" ) || pname == QLatin1String( "username" ) ) // Also accepts new WFS provider naming
{
mUsername = pval;
}