Development

This commit is contained in:
Matthew Grotke 2026-06-13 10:02:51 -04:00
parent 8a8e947fcf
commit 450c0081f7
9 changed files with 59 additions and 28 deletions

View file

@ -1,6 +1,7 @@
from pathlib import Path
from flask import Blueprint, request, session, redirect, flash
import bcrypt, secrets, smtplib
import secrets, smtplib
import settings
import time
from email.message import EmailMessage
import auth
@ -78,8 +79,7 @@ def form_create():
flash('This account is already set up. Please log in instead.', 'error')
return redirect(f'/{_PAGE}')
salt = bcrypt.gensalt()
hashed = bcrypt.hashpw(password.encode('utf-8'), salt).decode('utf-8')
hashed = settings.hash_password(password)
code = f'{secrets.randbelow(1000000):06d}'
try: