GNU GPL


The GNU GPL is an
open-source license.
Free Read License

14 Day money-back guarantee

Full refund within 14 days of purchase date.

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.

  • Released: May 19, 2011
    Last Update: Jun 2, 2011
  • Language: C#
  • Category: Security
(1 ratings)

OnlineLogin

OnlineLogin
Developed by Marius Brandt, Released May 19, 2011

Checks user and password via internet.

C#

Tags: onlinelogin , serial checker , user management , webrequest

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.

View all 1 reviews »

User Reviews

  • Connor Postma 7 months ago
    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
    Flag
    Was this helpful? Yes No
Read all 1 comments »

Questions & Comments


Or enter your name and Email
  • Connor Postma 7 months 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
You must be logged-in to vote. Log-in to your account or register now.