OnlineLogin

OnlineLogin

Checks user and password via internet.

  • Language: C#
  • Released: May 19, 2011
    Last Update: Jun 2, 2011

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.

You need to log-in or create an account
  • Create an account
  • Log-in
Please use your real name.
Activation link will be sent to this address.
Minimum 8 characters
Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

X

Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

License » GNU GPL Download
or Get a quote

for customization or integration services

  • This is a very good component and has great docs but it just has one big bug right now that messes up the auth, but it is open source so we can change it if we want too
    CP Connor Postma
    2 years ago, 0 comments
    Was this helpful?
    Flag
Post a comment

Or enter your name and Email
  • GS Gnokal Smarjuk 2 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