Esempio n. 1
0
        public ActionResult Logout()
        {
            SystemAuthenticate.Logout();
            var userClientDa = new UserClientDA();
            var userClient   = userClientDa.GetListByUsername(User.Account).ToList();

            foreach (var item in userClient)
            {
                item.IsLogin = false;
                userClientDa.Update(item);
            }
            return(Redirect(SystemAuthenticate.LoginUrl));
        }
Esempio n. 2
0
 public JsonResult ChangePassword(SystemUserChangePassword user)
 {
     try
     {
         Msg = objSystemBLL.ChangePassword(user);
         if (!Msg.Error)
         {
             SystemAuthenticate.Logout();
         }
     }
     catch (Exception ex)
     {
         Msg.Title = Notify.ExistsErorr;
         Msg.Error = true;
         LogMan.Instance.WriteErrorToLog(ex, ControlerName);
     }
     return(Json(Msg, JsonRequestBehavior.AllowGet));
 }