mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
potential regex code fix for email validation
This commit is contained in:
parent
16d7a4f71e
commit
48f80b37ed
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user