public ActionResult PasswordResetFinalStep(Guid token, string pincode, PasswordResetFinalStepModel model)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }

            var result = VerifyPincode(token, pincode);

            if (result != null)
            {
                return result;
            }

            var tokenEntity = WspContext.Services.Organizations.GetPasswordresetAccessToken(token);

            WspContext.Services.Organizations.SetUserPassword(
                    tokenEntity.ItemId, tokenEntity.AccountId,
                    model.PasswordEditor.NewPassword);

            WspContext.Services.Organizations.DeletePasswordresetAccessToken(token);

            return RedirectToRoute(AccountRouteNames.PasswordResetSuccess);
        }
        public ActionResult PasswordResetFinalStep(Guid token, string pincode)
        {
            var result = VerifyPincode(token, pincode);

            if (result != null)
            {
                return result;
            }

            var tokenEntity = WspContext.Services.Organizations.GetPasswordresetAccessToken(token);
            var account = WspContext.Services.Organizations.GetUserGeneralSettings(tokenEntity.ItemId,
                tokenEntity.AccountId);

            var model = new PasswordResetFinalStepModel();

            model.PasswordEditor.Settings = WspContext.Services.Organizations.GetOrganizationPasswordSettings(tokenEntity.ItemId);
            model.Login = account.UserPrincipalName;

            return View(model);
        }