Example #1
0
        public ActionBusinessResult DoLoginAccount(string userName, string password, string language)
        {
            var passwordEncrypt = Encription.EncryptAccountPassword(userName, password);
            var result          = this.CheckUserLogin(userName, passwordEncrypt);

            if (this.GetActionSuccess())
            {
                this.LoadAllRolesOfUser();
                this.CurrentUserInfo.HtmlMenu  = this.GetUserHtmlMenu(language);
                this.CurrentUserInfo.LoginTime = DateTime.Now;
                AccountManagerBL.UpdateDicAccountLogin(this.CurrentUserInfo);
            }

            return(result);
        }