play-authenticate
play-authenticate copied to clipboard
loginAndRedirect optional
I'm using a ajax request to login the user and just want to return a 200 status code. Is it possible to do the redirect optional somehow?
As far as I know, it is currently not possible without modifying play-authenticate's core. We are discussing related changes in issue https://github.com/joscha/play-authenticate/issues/53. At the moment, your best option is probably just redirecting to an empty page.
thanks, empty page is not the best solution since it still redirect the ajax request to '/'
did you find a workaround for this so far? One I could think of is returning a Call that redirects to an empty page that returns 200 - the request should just follow the redirect without any visible drawbacks for your user.