Esempio n. 1
0
        public override LoginStatus HandleLogin(socks5.Socks.User user)
        {
            var allowAccess = user.Username == User && user.Password == Password;

            if (!allowAccess)
            {
                Console.WriteLine($"Access denied for user '{user.Username}' & password '{user.Password}'.");
            }

            return(allowAccess ? LoginStatus.Correct : LoginStatus.Denied);
        }
Esempio n. 2
0
 public abstract LoginStatus HandleLogin(User user);
Esempio n. 3
0
 public SocksAuthenticationEventArgs(User loginInfo)
 {
     User = loginInfo;
 }
Esempio n. 4
0
 public override LoginStatus HandleLogin(User user)
 {
     return (user.Username == "thrdev" && user.Password == "testing1234" ? LoginStatus.Correct : LoginStatus.Denied);
 }