Exemple #1
0
 private void Login_Load(object sender, EventArgs e)
 {
     Timer.Enabled       = false;
     ProgressBar.Value   = 0;
     ProgressBar.Visible = false;
     Authentication      = JsonConvert.DeserializeObject <RootUsers>(Manager.ReadFile(@"./Data/login.json"));
 }
        public IHttpActionResult GetRootUsers(string Username)
        {
            RootUsers RU = principal.RootUsers.Where(x => x.Username == Username).FirstOrDefault();

            if (RU == null)
            {
                return(NotFound());
            }
            return(Ok(new {
                RootUserID = RU.RootUserID,
                Username = RU.Username,
                PasswordHash = RU.PasswordHash,
                PasswordSalt = RU.PasswordSalt
            }));
        }