A simple Flask web API for user registration, email confirmation, and login.
-
Registration
- Accepts
name,email, andpassword - Password hashing with
werkzeug.security.generate_password_hash - Generates a simple token using
email.replace('@', '_at_') - Sends a confirmation email via SMTP using Flask‑Mail
- Accepts
-
Email Confirmation
- Confirmation link calls
/api/confirm_email?token=… - Marks
verified = Truein the JSON storage
- Confirmation link calls
-
Login
- Validates user and password with
check_password_hash - Checks that the email has been confirmed
- Validates user and password with
-
Static Frontend
- HTML pages:
login.html,register.html,email_confirm.html,success.html - Client‑side validation and feedback with JavaScript
- Modern styling via
style.css
- HTML pages:
- Python 3.8+
- pipenv or
venv+pip
# Clone the repository
git clone https://github.com/YOUR_USERNAME/slogin.git
cd slogin/backend
# Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txtLicense MIT License