public ActionResult ChangePass() { try { string login; string pass; if (Request.QueryString.AllKeys.Length == 2 && Request.QueryString.AllKeys.Contains("login") && Request.QueryString.AllKeys.Contains("pass")) { login = Request.QueryString["login"]; pass = Request.QueryString["pass"].Replace(' ', '+'); if (!string.IsNullOrEmpty(login) && !string.IsNullOrEmpty(pass) && dataHelper.CheckUserToChangePass(login, pass)) { Session["cp_Login"] = login; Session["cp_Pass"] = pass; return(View()); } } } catch (ValidationException ve) { return(View("UserError", ve)); } catch (Exception ex) { logger.ErrorMessage("305", ex); return(View("Error", new Error() { ExDescription = ex.Message })); } return(View("Error", new Error() { ExDescription = "Error in login data!" })); }