A
A
Angope2022-01-14 15:18:11
Flask
Angope, 2022-01-14 15:18:11

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

3 answer(s)
A
Angope, 2022-01-16
@Angope

UPD:
Problem solved
I wrote my own validator using WTForms.
Info: https://wtforms.readthedocs.io/en/3.0.x/validators...

G
GavriKos, 2022-01-14
@GavriKos

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

S
Sergey Karbivnichy, 2022-01-14
@hottabxp

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 question

Ask a Question

731 491 924 answers to any question