Skip to content

Commit d61bb2f

Browse files
HaoKpranavkm
andauthored
Identity UI fix razor content (#36479)
* Try to fix razor content * Update src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj Co-authored-by: Pranav K <[email protected]> Co-authored-by: Pranav K <[email protected]>
1 parent a2bc180 commit d61bb2f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Identity/UI/src/Areas/Identity/Pages/V5/Account/Login.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<form id="external-account" asp-page="./ExternalLogin" asp-route-returnUrl="@Model.ReturnUrl" method="post" class="form-horizontal">
6868
<div>
6969
<p>
70-
@foreach (var provider in Model.ExternalLogins!)
70+
@foreach (var provider in Model.ExternalLogins)
7171
{
7272
<button type="submit" class="btn btn-primary" name="provider" value="@provider.Name" title="Log in using your @provider.DisplayName account">@provider.DisplayName</button>
7373
}

src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
</PropertyGroup>
2424

2525
<ItemGroup>
26+
<Content Update="**\*.cshtml" Pack="false" />
2627
<None Include="build\*" Pack="true" PackagePath="build\" />
2728
<None Include="buildMultiTargeting\*" Pack="true" PackagePath="buildMultiTargeting\" />
2829
<None Include="buildTransitive\*" Pack="true" PackagePath="buildTransitive\" />

0 commit comments

Comments
 (0)