Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Handle cases where users attempt to login without having registered

  • Loading branch information...
commit 7417de21aacd85c0fa5866b07cdaa3ccb3a69905 1 parent baf2e1d
Joonas Bergius authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  facebook_connect/views.py
8  facebook_connect/views.py
@@ -13,11 +13,11 @@ def facebook_login(request):
13 13
                 login(request, user)
14 14
                 return redirect(settings.LOGIN_REDIRECT_URL, {}, ())
15 15
             else:
16  
-                # Disabled account, pass for now
17  
-                pass
  16
+                # Disabled account, redirect and notify?
  17
+                return redirect('/', {}, ())
18 18
         else:
19  
-            # Invalid user, pass for now
20  
-            pass
  19
+            # Invalid user, redirect and notify?
  20
+            return redirect('/', {}, ())
21 21
     elif request.user.is_authenticated():
22 22
         return redirect(settings.LOGIN_REDIRECT_URL, {}, ())
23 23
     else:

0 notes on commit 7417de2

Please sign in to comment.
Something went wrong with that request. Please try again.