Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
amphasis committed Jul 3, 2022
1 parent b90c755 commit 4542323
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Amphasis.Azure.WebPortal/Amphasis.Azure.WebPortal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@


<ItemGroup>
<PackageReference Include="Amphasis.SimaLand" Version="1.0.13" />
<PackageReference Include="AspNet.Security.OAuth.MailRu" Version="6.0.1" />
<PackageReference Include="AspNet.Security.OAuth.Vkontakte" Version="6.0.1" />
<PackageReference Include="AspNet.Security.OAuth.Yandex" Version="6.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.0" />
<PackageReference Include="SkiaSharp" Version="2.80.3" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.0" />
<PackageReference Include="Amphasis.SimaLand" Version="1.0.14" />
<PackageReference Include="AspNet.Security.OAuth.MailRu" Version="6.0.6" />
<PackageReference Include="AspNet.Security.OAuth.Vkontakte" Version="6.0.6" />
<PackageReference Include="AspNet.Security.OAuth.Yandex" Version="6.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.6" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.6" />
<PackageReference Include="SkiaSharp" Version="2.88.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.21.0" />
</ItemGroup>

</Project>
13 changes: 12 additions & 1 deletion Amphasis.Azure.WebPortal/Pages/Profile.cshtml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
Expand All @@ -11,8 +11,19 @@ namespace Amphasis.Azure.WebPortal.Pages
[Authorize]
public class ProfileModel : PageModel
{
public ProfileModel()
{

}

public void OnGet()
{
}

public IActionResult OnPost()
{
if (!User.Identity.IsAuthenticated) return Redirect("/");
return SignOut();
}
}
}

0 comments on commit 4542323

Please sign in to comment.