Esempio n. 1
0
        //Reset Password
        public ActionResult ResetPassword(string password)
        {
            FacultyBlLayer.FacultyLogic facultyLogic = new FacultyBlLayer.FacultyLogic();
            Faculty facultyModel = (Faculty)TempData["module"];
            var     status       = facultyLogic.GetPasswordReset(password, facultyModel);

            if (status)
            {
                TempData["msg"] = "success";
            }
            else
            {
                TempData["msg"] = "failed";
            }
            return(RedirectToAction("Login", "Faculty"));
        }
Esempio n. 2
0
        public ActionResult VerifyDetails([Bind(Include = "UserId,SecurityQuestion,SecurityQueAnswer")] Faculty facultyModel)
        {
            FacultyBlLayer.FacultyLogic facultyLogic = new FacultyBlLayer.FacultyLogic();
            var status = facultyLogic.VerifyPasswordRecoveryDetails(facultyModel);

            if (status != null)
            {
                TempData["status"] = "true";
                TempData["module"] = status;
                return(View());
            }
            else
            {
                TempData["status"] = "false";
                return(View());
            }
        }
Esempio n. 3
0
        public ActionResult FindUserId([Bind(Include = "SecurityQuestion,SecurityQueAnswer,Contact,Email")] Faculty facultyModel)
        {
            FacultyBlLayer.FacultyLogic facultyLogic = new FacultyBlLayer.FacultyLogic();
            var userId = facultyLogic.GetFacultyId(facultyModel);

            if (userId.ToString().Length == 6)
            {
                TempData["status"] = "success";
                TempData["UserId"] = userId;
                return(View());
            }
            else
            {
                TempData["status"] = "failed";
                return(View());
            }
        }