Closed peterbe closed 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:
login_success
login_failure
return JSONResponse({'redirect': '/some/page'})
Then it will ignore that and instead go to $link.data('next') because this code.
$link.data('next')
Suppose you have this:
And you override
login_success
orlogin_failure
to do something like this:Then it will ignore that and instead go to
$link.data('next')
because this code.