now user cannot login when he is inactive .
authornishanth
Tue, 13 Apr 2010 14:29:00 +0530
changeset 25 17966ca75ca9
parent 24 31d37d0cf557
child 26 9d18daf5277f
now user cannot login when he is inactive .
reg/views.py
--- a/reg/views.py	Tue Apr 13 14:21:27 2010 +0530
+++ b/reg/views.py	Tue Apr 13 14:29:00 2010 +0530
@@ -45,7 +45,7 @@
                 login(request, user)
                 return redirect('/reg')
             else:
-                return render_to_response('account_inactive.html', {'user':user, 'email':email})
+                return render_to_response('account_inactive.html', {'email':email})
         else:
             return render_to_response('login.html', {'user':user, 'form':form})
     else: