Permalink
Browse files

Can't view this page if you are already logged in.

Signed-off-by: Chris Lamb <lamby@debian.org>
  • Loading branch information...
1 parent af43d78 commit 9634b78cee5524204fa849b4304362b60dd3d682 @lamby lamby committed with Sep 27, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/librement/account/views.py
@@ -17,6 +17,9 @@
from .forms import LoginForm
def login(request):
+ if request.user.is_authenticated():
+ return redirect(settings.LOGIN_REDIRECT_URL)
+
if request.method == 'POST':
form = LoginForm(request.POST)

0 comments on commit 9634b78

Please sign in to comment.