brathu / simpleloginsystem

A simple login system based on pastebin.com pastes as "database"
0 stars 0 forks source link

SimpleLoginSystem

A simple login system based on pastebin.com pastes as "database"

Info

You need a pastebin account to create private pastes and to edit them (add or remove users). Its not recommended to use this for a commercially project!

Usage

  1. Import Loginsys, create an instance and set the config file, Then just use it like here:
    
    from loginsystem import Loginsys

ls = Loginsys('config/config.json') #create an instance and set the config file

def main(): print('start main func')

if name == "main": username = input('Username: ') password = input('Password: ') if(ls.login(username, password)): main()

2. change url in config.json to the raw of youre [pastebin](https://pastebin.com/) paste:
```json
{
    "url": "https://pastebin.com/raw/EG86YeBX"
}