From 847c24c0fe3c9d9f31ae4e5c3c0a68b783873592 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Mon, 13 Nov 2017 16:55:34 +0530 Subject: if password is empty then defaults to email --- yaksh/views.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit