public IActionResult OnGet() { if (CurrentLogged.isLoggedIn()) { return(Redirect("Account")); } Error = "Enter your username and password"; return(null); }
public IActionResult OnGet() { if (!CurrentLogged.isLoggedIn()) { return(Redirect("Login")); } username = CurrentLogged.getUsername(); Error = "Select an option below"; return(Page()); }
public void OnGet() { logged = CurrentLogged.isLoggedIn().ToString(); }