Commits

Anonymous committed 21bd5e2

[svn r68] not needed anymore since we introduced not_authenticated
decorator.

Comments (0)

Files changed (1)

django_authopenid/views.py

     if not next or not is_valid_next_url(next):
         next = getattr(settings, 'OPENID_REDIRECT_NEXT', '/')
 
-    if request.user.is_authenticated():
-        return HttpResponseRedirect(next)
-
-
     form_signin = OpenidSigninForm(initial={'next':next})
     form_auth = OpenidAuthForm(initial={'next':next})
 
 
     form = RegistrationForm(initial={'next':next})
     form_signin = OpenidSigninForm(initial={'next':next})
-
-    if request.user.is_authenticated():
-        return HttpResponseRedirect(next)
     
     if request.POST:
         form = RegistrationForm(request.POST)