flask-extensions / Flask-SimpleLogin

Simple Login - Login Extension for Flask - maintainer @cuducos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Actions PyPI PyPI versions PyPI formats Flask Documentation

Login Extension for Flask

The simplest way to add login to flask!

How it works

First, install it from PyPI:

$ pip install flask_simplelogin

Then, use it in your app:

from flask import Flask
from flask_simplelogin import SimpleLogin

app = Flask(__name__)
SimpleLogin(app)

That's it!

Now you have /login and /logout routes in your application.

The username defaults to admin and the password defaults to secret — yeah that's not clever, check the docs to see how to configure it properly!

Login Screen

Check the documentation for more details!

About

Simple Login - Login Extension for Flask - maintainer @cuducos

License:MIT License


Languages

Language:Python 78.2%Language:HTML 21.8%