An open API service indexing awesome lists of open source software.

https://github.com/riad-azz/flask-auth-example

A simple Flask authentication example using Flask-Login.
https://github.com/riad-azz/flask-auth-example

flask flask-auth flask-bcrypt flask-blueprints flask-csrf flask-example flask-forms flask-login flask-sqlalchemy flask-tutorial

Last synced: 9 months ago
JSON representation

A simple Flask authentication example using Flask-Login.

Awesome Lists containing this project

README

          

# Flask Authentication Example

This repository provides an example implementation of user authentication using Flask-Login, demonstrating
how to build a simple web application with user registration, login.

## Features

- User registration and login functionality.
- Password hashing for enhanced security.
- Flash messages for user feedback.

## Preview

- Logged in:

![Logged in page](https://github.com/riad-azz/readme-storage/blob/main/flask-auth-example/logged.png?raw=true)

- Registration page:

![Registration page](https://github.com/riad-azz/readme-storage/blob/main/flask-auth-example/register.png?raw=true)

- Login page:

![Login page](https://github.com/riad-azz/readme-storage/blob/main/flask-auth-example/login.png?raw=true)

## Getting Started

1.Clone the repository to your local machine:

```bash
git clone https://github.com/riad-azz/flask-auth-example && cd flask-auth-example
```

2.Install the required dependencies:

```bash
pip install -r requirements.txt
```

3.The application can be run with the following command:

```bash
python main.py
```

Open your web browser and navigate to http://localhost:5000 to access the application.