Exemple #1
0
 /// <summary>
 /// 初始化
 /// </summary>
 public void InitialForm()
 {
     _loginApp = new LoginAppService();
     //控件初始化
     //ucbooks.InitUserControl();
     //当空间选择时触发自定义事件
     //this.ucbooks.SelectedValueChanged += new EventHandler(txtCardGrade_SelectedValueChanged);
     if (Common.SystemConfig.CurrentConfig.LoginSave)
     {
         tUserID.Text = Common.SystemConfig.CurrentConfig.LastLoginUser;
         //登录用户密码解密
         tPwd.Text = Common.CEncoder.Decode(Common.SystemConfig.CurrentConfig.LastLoginPWD);
     }
     ckSaveLogin.Checked = Common.SystemConfig.CurrentConfig.LoginSave;
 }
        // POST: api/UserSession
        public UserSession Post([FromBody] UserSession usuario)
        {
            LoginAppService servicio = new LoginAppService(cadenaConexion);

            return(servicio.LoginUsuario(usuario.usuario, usuario.password));
        }
 public AuthenticationController(LoginAppService loginService)
 {
     this._loginService = loginService;
 }