Exemplo n.º 1
0
        public ActionResult RecoverEmail(string id)
        {
            string email = "";
            PasswordRecoveryLogic prl = new PasswordRecoveryLogic();
            var v = prl.IsEmailRecoverExist(id);

            if (v != null)
            {
                email = v;
            }
            else
            {
                ViewBag.Message = "Invalid Request";
            }
            ViewBag.EMail = email;



            consignatario cons = new consignatario
            {
                Email = email
            };

            return(View(cons));
        }
Exemplo n.º 2
0
        public ActionResult RecoverEmail(consignatario cons)
        {
            PasswordRecoveryLogic prl = new PasswordRecoveryLogic();

            #region  Password Hashing
            cons.AccessPassword = Crypto.Hash(cons.AccessPassword);
            prl.actualizaPass(cons);
            #endregion

            bool Status = true;
            ViewBag.Status  = Status;
            ViewBag.Message = "Contraseña Modificada!";

            return(View(cons));
        }