mozilla / django-browserid

Django application for adding BrowserID support.
Mozilla Public License 2.0
179 stars 80 forks source link

Impossible to override the redirect URL #248

Closed peterbe closed 10 years ago

peterbe commented 10 years ago

Suppose you have this:

<a href="#" data-next="/" class="browserid-login persona-button dark" >
    <span>Sign in</span>
</a>

And you override login_success or login_failure to do something like this:

return JSONResponse({'redirect': '/some/page'})

Then it will ignore that and instead go to $link.data('next') because this code.