Beispiel #1
0
        public ActionResult ResendPasscode()
        {
            Account account  = (Account)TempData["account"];
            int     passcode = PasscodeHelper.GetPasscode();

            SendEmail(account, passcode).Wait();
            TempData["passcode"] = passcode;
            return(RedirectToAction("VerifyEmail"));
        }
Beispiel #2
0
 public ActionResult Create([Bind(Include = "userID,userName,password,firstName,lastName,emailID,userType")] Account account)
 {
     if (ModelState.IsValid)
     {
         int passcode = PasscodeHelper.GetPasscode();
         EmailHelper.SendPasscode(account, passcode);
         TempData["passcode"] = passcode;
         TempData["account"]  = account;
         if (passcode != 0)
         {
             return(RedirectToAction("VerifyEmail"));
         }
     }
     return(View());
 }