play-authenticate icon indicating copy to clipboard operation
play-authenticate copied to clipboard

loginAndRedirect optional

Open ssachtleben opened this issue 11 years ago • 3 comments

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?

ssachtleben avatar Mar 30 '13 04:03 ssachtleben

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.

smola avatar Mar 30 '13 11:03 smola

thanks, empty page is not the best solution since it still redirect the ajax request to '/'

ssachtleben avatar Mar 30 '13 13:03 ssachtleben

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.

joscha avatar Apr 04 '13 17:04 joscha