Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
D-GENIES
Commits
9aada461
Commit
9aada461
authored
Feb 19, 2018
by
Floreal Cabanettes
Browse files
Fix check of mail
parent
2360f9dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dgenies/views.py
View file @
9aada461
...
...
@@ -111,7 +111,7 @@ def launch_analysis():
if
email
==
""
:
errors
.
append
(
"Email not given"
)
form_pass
=
False
elif
not
re
.
match
(
r
"^[\w\-]+@[\w\-]{2,}\.[a-z]{2,4}"
,
email
):
elif
not
re
.
match
(
r
"^[\w
.
\-]+@[\w\-
.
]{2,}\.[a-z]{2,4}
$
"
,
email
):
errors
.
append
(
"Email is invalid"
)
form_pass
=
False
if
file_target
==
""
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment