Beispiel #1
0
 public IActionResult OnGet()
 {
     if (CurrentLogged.isLoggedIn())
     {
         return(Redirect("Account"));
     }
     Error = "Enter your username and password";
     return(null);
 }
Beispiel #2
0
        public IActionResult OnGet()
        {
            if (!CurrentLogged.isLoggedIn())
            {
                return(Redirect("Login"));
            }
            username = CurrentLogged.getUsername();
            Error    = "Select an option below";

            return(Page());
        }
Beispiel #3
0
 public void OnGet()
 {
     logged = CurrentLogged.isLoggedIn().ToString();
 }