public override LoginResult LoginById(string id)
        {
            var dto = new ConfiguratorUserDTO();
            var res = new LoginResult(true, "Welcome", dto);

            SetToken(res);
            return(res);
        }
 public override LoginResult Login(string name, string password, bool remember = false)
 {
     if (Check(name, password))
     {
         var dto = new ConfiguratorUserDTO();
         var res = new LoginResult(true, "Welcome", dto);
         SetToken(res, remember);
         return(res);
     }
     return(new LoginResult(false, "Incorrect user name or password"));
 }