Auth.GG
  • Welcome to Auth.GG!
  • C#
    • Initial Setup
    • Login
    • Register
    • Extend Subscription
    • User Information
    • Variables
    • Logs
  • Universal API
    • Application Information
    • Login
    • Register
    • Extend Subscription
    • Forgot Password
    • Change Password
    • Log
  • Admin API
    • Users
    • Licenses
    • HWID
  • FOR DEVELOPER
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. C#

Login

Make sure your program has been initialized and is connected to Auth.GG servers.

C# WINFORMS
private void Button1_Click() { // Login button click event handler

 if(API.Login(username.Text,password.Text))
            {
                //Put code here of what you want to do after successful login
                MessageBox.Show("Login successful!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Main main = new Main();
                main.Show();
                this.Hide();
            }

}
C# CONSOLE
static void Main() {

Console.Title = "Auth.GG";
Console.Write("Enter your username: ");
string username = Console.ReadLine();
Console.Write("Enter your password: ");
string password = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Authenticating...");
Console.ForegroundColor = ConsoleColor.White;
if (API.Login(username, password))
                    {
                    //Code you want to do here on successful login
MessageBox.Show("You have successfully logged in!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Information);
                    }
}

PreviousInitial SetupNextRegister

Last updated 5 years ago

Was this helpful?