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