Closed ZlobnyiSerg closed 13 years ago
Unfortunately, ulogin
only returns the authentication information and therefore we can't obtain the 'next' parameter.
But you can put 'next' query parameter into uLogin's redirect_uri=..., when templatetag forms ulogin script url, and after get this url from request in your postback view, i.e. do not redirect to the site url like so:
return redirect('/')
this is completely incorrect, rather than do something like
return redirect(request.GET.get('next', '/'))
I'm understand. Ok, I'll add this feature, thanks
When using standard "requires_login" wrapper on views, it redirects unauthenticated users to urls like '/login/?next=private', it would be wonderful if 'next' query parameter will not be ignored on login process via uLogin. This parameter should be passed to uLogin script and used as redirect url after logging in.