public bool CheckUser(string username, string password)
        {
            if (String.IsNullOrEmpty(username) || String.IsNullOrEmpty(password))
            {
                return(false);
            }
            var currentUser = _userRepository.FindUserByName(username);

            if (currentUser == null)
            {
                return(false);
            }

            return(JsonWebToken.AreEqual(password, currentUser.Password, "128"));
        }