Commit 999608e0 authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros
Browse files

Made e-mail address optional in batch checker website interface.

parent 03cb9bb3
......@@ -37,10 +37,11 @@
</div>
<div class="form-group">
<label for="email">Email address</label>
<input name="email" id="email" type="email" class="form-control with-mailcheck"
<label for="email">Email address (optional)</label>
<input name="email" id="email" type="email"
class="form-control with-mailcheck"
placeholder="Email address (notification will be sent here)"
required value="{{ email }}">
value="{{ email }}">
</div>
<div class="form-group">
......
......@@ -907,7 +907,7 @@ def batch_jobs_submit():
errors = []
if not email:
errors.append('Please provide an email address.')
email = '{}@webservice'.format(request.remote_addr)
if job_type not in BATCH_JOB_TYPES:
errors.append('Invalid batch job type.')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment