Register

Users require a token to register, only the developer can make them available for users to get access to

C# WINFORMS
/* C# WINFORMS */
using TrinitySeal;

private void Button1_Click() { // Register button event handler

SealCheck.HashChecks(); // Check integrity of auth files

if (SealCheck.isValidDLL) {
   // The register arguments goes in the order: username, password, email, token
   bool response = TrinitySeal.Seal.Register(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text);
   if (response){
   // Register was successful
   }
   else {
   // Register wasn't a success
   }
}

}
C# CONSOLE
using TrinitySeal;

static void Main() {

Console.Title = "TrinitySeal";
Console.Write("Enter your username: ");
string username = Console.ReadLine();
Console.Write("Enter your password: ");
string password = Console.ReadLine();
Console.Write("Enter your email: ");
string email = Console.ReadLine();
Console.Write("Enter your token: ");
string token = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Registering...");
Console.ForegroundColor = ConsoleColor.White;
SealCheck.HashChecks();
if (SealCheck.isValidDLL) {
  bool response = TrinitySeal.Seal.Register(username, password, email, token, false);
  if (response) {
  Console.ForegroundColor = ConsoleColor.Green;
  Console.WriteLine("Successfully registered!");
  Console.ForegroundColor = ConsoleColor.White;
  Console.Read();
  }
  else{
  Console.ForegroundColor = ConsoleColor.Red;
  Console.WriteLine("Failed to register!");
  Console.Read();
  }
}
else {
Environment.Exit(0);
}
}
VB FORM
Private Sub Button1_Click()
    SealCheck.HashChecks()

    If SealCheck.isValidDLL Then
        Dim response As Boolean = TrinitySeal.Seal.Register(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text)

        If response Then
            // Register Success
        End If
    End If
End Sub
VB CONSOLE
Private Shared Sub Main()
    Console.Title = "TrinitySeal"
    Console.Write("Enter your username: ")
    Dim username As String = Console.ReadLine()
    Console.Write("Enter your password: ")
    Dim password As String = Console.ReadLine()
    Console.Write("Enter your email: ")
    Dim email As String = Console.ReadLine()
    Console.Write("Enter your token: ")
    Dim token As String = Console.ReadLine()
    Console.ForegroundColor = ConsoleColor.Green
    Console.WriteLine("Registering...")
    Console.ForegroundColor = ConsoleColor.White
    SealCheck.HashChecks()

    If SealCheck.isValidDLL Then
        Dim response As Boolean = TrinitySeal.Seal.Register(username, password, email, token, False)

        If response Then
            Console.ForegroundColor = ConsoleColor.Green
            Console.WriteLine("Successfully registered!")
            Console.ForegroundColor = ConsoleColor.White
            Console.Read()
        Else
            Console.ForegroundColor = ConsoleColor.Red
            Console.WriteLine("Failed to register!")
            Console.Read()
        End If
    Else
        Environment.[Exit](0)
    End If
End Sub

Last updated