コード例 #1
0
 public ActionResult MyProfile()
 {
     if (ClientSessionData.UserClientId != 0)
     {
         model = clientLoginHelper.GetById(ClientSessionData.UserClientId);
     }
     return(View(model));
 }
コード例 #2
0
 public ActionResult ResetPassword(string EncryptUserClientId, ClientChangePassword ObjModel)
 {
     if (ModelState.IsValidField("NewPassword") && ModelState.IsValidField("ConfirmPassword"))
     {
         EncryptUserClientId = EncryptUserClientId.Replace("$", "+");
         EncryptUserClientId = EncryptUserClientId.Replace("/", "!");
         Encrypt64 encrypt      = new Encrypt64();
         string    UserClientId = encrypt.Decrypt(EncryptUserClientId, ConfigurationManager.AppSettings["SecureKey"].ToString());
         ObjModel.UserClientId = Convert.ToInt32(UserClientId);
         ClientLoginHelper clientLoginHelper = new ClientLoginHelper();
         ClientLogOnModel  clientLogOnModel  = new ClientLogOnModel();
         clientLogOnModel = clientLoginHelper.GetById(ObjModel.UserClientId);
         int Result = clientLoginHelper.ForgotChangePassword(ObjModel);
         if (Result == 0)
         {
             TempData["CommonMessage"] = AppLogic.setMessage(0, "Password changed sucessfully");
             return(Redirect(Url.Content("~/" + clientLogOnModel.StrataPortalLink + "/Login")));
         }
         else
         {
             TempData["CommonMessage"] = AppLogic.setMessage(1, "Please check password you have entered and Try again");
             return(View());
         }
     }
     else
     {
         return(View());
     }
 }
コード例 #3
0
        public ActionResult CompleteProfile()
        {
            ClientLogOnModel model = new ClientLogOnModel();

            if (ClientSessionData.UserClientId != 0)
            {
                model = clientLoginHelper.GetById(ClientSessionData.UserClientId);
            }
            return(View(model));
        }
コード例 #4
0
        // GET: DashBoard
        public ActionResult Index()
        {
            ClientLogOnModel  model             = new ClientLogOnModel();
            ClientLoginHelper clientLoginHelper = new ClientLoginHelper();

            if (ClientSessionData.UserClientId != 0)
            {
                model = clientLoginHelper.GetById(ClientSessionData.UserClientId);
            }
            return(View(model));
        }