summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprathamesh2017-11-13 16:55:34 +0530
committerprathamesh2017-11-13 16:55:34 +0530
commit847c24c0fe3c9d9f31ae4e5c3c0a68b783873592 (patch)
treecce9998382f769b8c33ecfa49ec3f6db0fb5a2e9
parentdadf1d1148982c841b5002fe0cc26a82d9d34c95 (diff)
downloadonline_test-847c24c0fe3c9d9f31ae4e5c3c0a68b783873592.tar.gz
online_test-847c24c0fe3c9d9f31ae4e5c3c0a68b783873592.tar.bz2
online_test-847c24c0fe3c9d9f31ae4e5c3c0a68b783873592.zip
if password is empty then defaults to email
-rw-r--r--yaksh/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 8bda843..e7c2037 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -1938,6 +1938,8 @@ def _get_csv_values(row, fields):
row['lastname']])
if 'password' in fields:
password = row['password'].strip()
+ if not password:
+ password = email
else:
password = email
if 'roll_no' in fields: