diff options
author | Aaron Williamson <aaron@copiesofcopies.org> | 2011-10-03 19:59:28 -0400 |
---|---|---|
committer | Aaron Williamson <aaron@copiesofcopies.org> | 2011-10-03 19:59:28 -0400 |
commit | 3b74ce94ff90e0bd5b214891becb62a6fc503434 (patch) | |
tree | b71e84ea022bc680a0dd2156c6dd194f8a4e1b7f | |
parent | f1360855319612a9af3c03ae4ca04fef6660f6b0 (diff) | |
download | mediagoblin-3b74ce94ff90e0bd5b214891becb62a6fc503434.tar.lz mediagoblin-3b74ce94ff90e0bd5b214891becb62a6fc503434.tar.xz mediagoblin-3b74ce94ff90e0bd5b214891becb62a6fc503434.zip |
Check request.user to determine if user is logged in.
-rw-r--r-- | mediagoblin/auth/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index d91a1f25..fdc5aec8 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -196,7 +196,7 @@ def resend_activation(request): Resend the activation email. """ - if not request.GET.has_key('userid') or not request.GET.has_key('token'): + if request.user is None: messages.add_message( request, messages.ERROR, |