From f71a7deef9b07aa619c31d6ef2fbfc1e877afa6a Mon Sep 17 00:00:00 2001
From: Stefano Alberto Russo <stefano.russo@gmail.com>
Date: Mon, 4 May 2020 14:35:50 +0200
Subject: [PATCH] Bugfix

---
 services/webapp/code/rosetta/base_app/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/services/webapp/code/rosetta/base_app/views.py b/services/webapp/code/rosetta/base_app/views.py
index c8a3e2e..5a4d653 100644
--- a/services/webapp/code/rosetta/base_app/views.py
+++ b/services/webapp/code/rosetta/base_app/views.py
@@ -450,7 +450,7 @@ def create_task(request):
         task.access_method = request.POST.get('access_method', None)
         
         # Cheks
-        if len(task.auth_pass) < 6:
+        if task.auth_pass and len(task.auth_pass) < 6:
             raise ErrorMessage('Task password must be at least 6 chars') 
         
         # Computing options # TODO: This is hardcoded thinking about Slurm
-- 
GitLab