コード例 #1
0
        public ActionResult ResetPassword(Guid GUID)
        {
            var user = landingPageService.GetCurrentUser(GUID);

            user.Password = "";
            var config = landingPageService.GetAppConfigData();

            ViewBag.bannerLinks = new List <SiteLinkViewModel>();
            ViewBag.config      = config.Config;
            var isExpired = landingPageService.CheckIfEmailExpired(user.GUID, (int)EmailType.EmailTypes.PasswordReset);

            if (isExpired)
            {
                return(PartialView("ExpiredEmail", user));
            }
            return(View(user));
        }