public IActionResult Register(string email, string passwd, string firstname, string lastname, string birthdate) { UserAuthCode code = register(email, passwd, firstname, lastname, birthdate); if (code == UserAuthCode.SUCCESS) { return(redirectOnLogged()); } return(View(code)); }
public IActionResult Login(string email, string passwd) { UserAuthCode code = login(email, passwd); if (code == UserAuthCode.SUCCESS) { return(redirectOnLogged()); } return(View(code)); }