OnlineLogin

OnlineLogin

Released 4 years ago , Last update 4 years ago

Checks user and password via internet.

This program can check if a user with the specified password exists. Requires an internet connection and a file on the internet. The installation and use is very easy and will not require more than a few minutes to set up.

Advantages

This DLL comes with only few and clear, but at the same time effective functions. It can be used for people who are new to C# but also professionals can benefit from this DLL. All this combined creates a small but very fast component on which you can rely on.

Setup

Add the OnlineLogin.dll to your project as a reference. Create a file on your website with all users and passwords, if such a file doesn't already exist. Ensure that the file has the following format: Username - Password

Usage

Initialize a new Login object with this simple line:

Login userLogin = new Login();

Then, tell the DLL where the file is. Replace the sample URL with the URL of the file.

userLogin.Init("http://example.com/Users.txt");

Finally, check the existence of a user and the corresponding password like so:

userLogin.CheckUser(username, password);

The two last functions should be stored in an integer variable, so that it can be used in an if statement, where it should belong to. For the check, use this if statement:

int check = userLogin.CheckUser(username, password);
if(check == 1)
{
    //success
}
else
{
    //failure
}

And for the initialisation you can use this sample:

int init = userLogin.Init("http://example.com/Users.txt");
if(init == 1)
{
    //success
}
else
{
    //failure
}

Note: 1 always equals true, 0 always equals false.

4.0
  • 5 0
  • 4 1
  • 3 0
  • 2 0
  • 1 0
1 Reviews Read Reviews

Pricing

FREE

GNU GPL

The GNU GPL is an open-source license.

License » GNU GPL Download

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
  • GS Gnokal Smarjuk 6 months ago
    There are some issues severe issues with this code, the most important being that you probably don't want to have your unencrypted passwords somewhere out in the wild.
  • CP Connor Postma 2 years ago
    Glitchy... :/ when i enter nothing, success. when i enter part of the passwerd even just 1 character from it, sucess. the only time it denies is if both are completlely wrong and don't even have the same letters. But it is open source so i guess i am just going to have to edit and re-build it with a better auth system