From 999608e0cf75327c658b9d06c51122b763748493 Mon Sep 17 00:00:00 2001
From: "Jeroen F.J. Laros" <jlaros@fixedpoint.nl>
Date: Sun, 8 Nov 2015 21:56:31 +0100
Subject: [PATCH] Made e-mail address optional in batch checker website
 interface.

---
 mutalyzer/website/templates/batch-jobs.html | 7 ++++---
 mutalyzer/website/views.py                  | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/mutalyzer/website/templates/batch-jobs.html b/mutalyzer/website/templates/batch-jobs.html
index 05b36fc3..4877c5cc 100644
--- a/mutalyzer/website/templates/batch-jobs.html
+++ b/mutalyzer/website/templates/batch-jobs.html
@@ -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">
diff --git a/mutalyzer/website/views.py b/mutalyzer/website/views.py
index 9fb3e4a3..1786c201 100644
--- a/mutalyzer/website/views.py
+++ b/mutalyzer/website/views.py
@@ -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.')
-- 
GitLab