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#

Register

Users require a license to register, only the developer can make them available for users to get access to on the web-panel.

C# WINFORMS
private void Button1_Click() { // Register button event handler
 
 if (API.Register(username.Text, password.Text,email.Text,license.Text))
            {
                //Put code here of what you want to do after successful login
                MessageBox.Show("Register has been successful!","Success",MessageBoxButtons.OK,MessageBoxIcon.Information);
            }
}
C# CONSOLE
static void Main() {

Console.WriteLine("Username:");
string username = Console.ReadLine();
Console.WriteLine("Password:");
string password = Console.ReadLine();
Console.WriteLine("Email:");
string email = Console.ReadLine();
Console.WriteLine("License:");
string license = Console.ReadLine();

    if (API.Register(username, password, email, license))
    {
    MessageBox.Show("You have successfully registered!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Information);
    // Do code of what you want after successful register here!
    }
                    
}
PreviousLoginNextExtend Subscription

Last updated 4 years ago

Was this helpful?