Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit aedede4

Browse files
committed
Merge branch 'dev' of https://github.com/SharePoint/PnP-PowerShell into dev
2 parents 9251d19 + ff9de6d commit aedede4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Commands/Base/SPOnlineConnectionHelper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,12 @@ internal static SPOnlineConnection InstantiateSPOnlineConnection(Uri url, PSCred
577577
{
578578
context.Credentials = new NetworkCredential(credentials.UserName, credentials.Password);
579579
}
580+
else
581+
{
582+
// If current credentials should be used, use the DefaultNetworkCredentials of the CredentialCache. This has the same effect
583+
// as using "UseDefaultCredentials" in a HttpClient.
584+
context.Credentials = CredentialCache.DefaultNetworkCredentials;
585+
}
580586
}
581587
#if SP2013 || SP2016 || SP2019
582588
var connectionType = ConnectionType.OnPrem;

Commands/Site/SetSite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace SharePointPnP.PowerShell.Commands.Site
3333
Remarks = "Enables Microsoft Flow for this site",
3434
SortOrder = 3)]
3535
[CmdletExample(
36-
Code = @"PS:> Set-PnPSite -SiteLogoPath c:\images\mylogo.png",
36+
Code = @"PS:> Set-PnPSite -LogoFilePath c:\images\mylogo.png",
3737
Remarks = "Sets the logo if the site is a modern team site",
3838
SortOrder = 4)]
3939
public class SetSite : PnPCmdlet

0 commit comments

Comments
 (0)