I'm building a Python web application using Flask along with Flask-User. I want to be able to restrict user registration to users that have an email on a specific domain (i.e. whoever@example.com)
Is this possible?
I'm building a Python web application using Flask along with Flask-User. I want to be able to restrict user registration to users that have an email on a specific domain (i.e. whoever@example.com)
Is this possible?
You could validate the E-Mail in the RegisterForm, so only users with E-Mail ending on example.com will be allowed to register. If you are using Flask-WTF you can check the documentation of WTForms for custom validators.