Go to file
Kumi 2c976a9c03
fix: optimize email validation in forms
Refactored the email lookup logic in the EmailForm class to fetch all users once and then search the list in Python, rather than making a database call for each email validation. This change reduces database load and potentially speeds up form processing by avoiding multiple queries. It's particularly beneficial when dealing with a large number of users, ensuring scalability and improved performance of the application.

The new approach retrieves the list of users upfront and iterates over it to find a match, falling back to `None` if no user with the specified email exists. This method is more efficient and aligns with best practices for handling database interactions in a web application.
2024-04-26 12:19:16 +02:00
static feat: enhance user registration flow with validation 2024-04-26 08:53:28 +02:00
templates feat: Enhance app config and user feedback 2024-04-26 09:45:43 +02:00
.gitignore feat: Initialize application with Flask framework 2024-04-25 10:26:11 +02:00
app.py fix: optimize email validation in forms 2024-04-26 12:19:16 +02:00
requirements.txt feat: enhance user registration flow with validation 2024-04-26 08:53:28 +02:00
settings.dist.ini feat: Enhance app config and user feedback 2024-04-26 09:45:43 +02:00