Example #1
0
        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));
        }
Example #2
0
        public IActionResult Login(string email, string passwd)
        {
            UserAuthCode code = login(email, passwd);

            if (code == UserAuthCode.SUCCESS)
            {
                return(redirectOnLogged());
            }
            return(View(code));
        }