mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-08-01 10:13:44 +00:00
potential regex code fix for email validation
This commit is contained in:
@@ -665,7 +665,7 @@ def register():
|
|||||||
email = request.form.get('email', '').strip()
|
email = request.form.get('email', '').strip()
|
||||||
rpassword = request.form.get('rpassword', '')
|
rpassword = request.form.get('rpassword', '')
|
||||||
|
|
||||||
is_valid_email = re.compile(r'[\w\.-]+@[\w\.-]+')
|
is_valid_email = re.compile(r'^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$')
|
||||||
|
|
||||||
error_messages = {}
|
error_messages = {}
|
||||||
if not firstname:
|
if not firstname:
|
||||||
|
Reference in New Issue
Block a user