Let me tell you what is login system, or authentication system. A user comes to your web app, gives you his username and a secure string that only your system or user knows. Later when he comes back, he provides the username and the secure string (
known as password) and the system (if both are correct) logs him in. A simple login system (without any security, and features) can be developed using the following code...
string username = "<get-username>";
string password = "<get-password>";
if(username == savedUsername && password == savedPassword) {
} else {
}
</get-password></get-username>
There. No one can say that this isn't what a login system does. Other login systems do is something that provides security to your credentials such as password hashing (
it is required, do not store passwords without hashing them). Now if you have understanding of how a language works, you will be able to define a structure of your own.
You can also use ASP.NET Identity if you want to. It would provide you with basic implementation of login authentication system and is free of cost for ASP.NET.
Also, if you still want to create your own, please give a look at the Login system that I have created that uses JSON files as data source and creates a very basic login system.
Get it on GitHub[
^]... Or you can
get it from NuGet[
^] also,
PM> Install-Package LoginKeys