Beispiel #1
0
        public ActionResult ResetPasswordPassword(SetPassword model)
        {
            ResetPasswordRequest request = new ResetPasswordRequest();

            var response = ApiWrapper.Post<ResetPasswordRequest>("api/user/reset", request);

            return View("/login");
        }
Beispiel #2
0
        public ActionResult ResetPassword(string key, string message = "")
        {
            SetPassword model = new SetPassword();
            var response = ApiWrapper.Get<ForgotPasswordResponse>("api/user/reset");

            model.Email = response.Email;
            model.Key = key;
            model.Message = message;

            return View("SetPassword");
        }
Beispiel #3
0
        public ActionResult SetPass(string guid)
        {
            Guid g;

            if (!Guid.TryParse(guid, out g))
                return HttpNotFound();

            SetPassword model = new SetPassword();
            model.Key = guid;

            return View("SetPassword", model);
        }