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); }
public abstract LoginStatus HandleLogin(User user);
public SocksAuthenticationEventArgs(User loginInfo) { User = loginInfo; }
public override LoginStatus HandleLogin(User user) { return (user.Username == "thrdev" && user.Password == "testing1234" ? LoginStatus.Correct : LoginStatus.Denied); }