Answer the question
In order to leave comments, you need to log in
Flask/Python registration?
How to implement the possibility of registering exclusively by specific mail?
For example, I want only those who have the mail of our organization (for example: [email protected]) to be able to register on the site. Thus cut off the left people.
Answer the question
In order to leave comments, you need to log in
UPD:
Problem solved
I wrote my own validator using WTForms.
Info: https://wtforms.readthedocs.io/en/3.0.x/validators...
You also have a route that processes the registration form. What's stopping you from checking it? Similarly, it is always checked if such a user already exists
The only true option is to take new users from the database with the mail *@mycorp.ru and send links to confirm registration there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question