parent
f15637e328
commit
e8816350ef
|
|
@ -5,16 +5,19 @@ using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
|
||||||
public class SignedOutModel : PageModel
|
namespace Company.WebApplication1.Pages.Account
|
||||||
{
|
{
|
||||||
public IActionResult OnGet()
|
public class SignedOutModel : PageModel
|
||||||
{
|
{
|
||||||
if (User.Identity.IsAuthenticated)
|
public IActionResult OnGet()
|
||||||
{
|
{
|
||||||
// Redirect to home page if the user is authenticated.
|
if (User.Identity.IsAuthenticated)
|
||||||
return RedirectToPage("/Index");
|
{
|
||||||
}
|
// Redirect to home page if the user is authenticated.
|
||||||
|
return RedirectToPage("/Index");
|
||||||
|
}
|
||||||
|
|
||||||
return Page();
|
return Page();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -5,5 +5,8 @@
|
||||||
@*#if (IndividualLocalAuth)
|
@*#if (IndividualLocalAuth)
|
||||||
@using Company.WebApplication1.Data
|
@using Company.WebApplication1.Data
|
||||||
#endif*@
|
#endif*@
|
||||||
|
@*#if (OrganizationalAuth || IndividualB2CAuth)
|
||||||
|
@using Company.WebApplication1.Pages.Account
|
||||||
|
#endif*@
|
||||||
@namespace Company.WebApplication1.Pages
|
@namespace Company.WebApplication1.Pages
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue