I'm using version 1.2 of the Spring Security plugin in a Grails application. I want login attempts to be handled in the following way:
Success
- if the login was triggered by an attempt to access a protected page, send them to that page
- if the user logged in "directly" redirect them back to the home page
Failure
- Send them to a "try again" login page and populate the form thereon with the invalid login details they entered (except for the password fields). This "try again" login page is not the same page that they use to login the first time
I've had a look at the Events section of the plugin's manual, which seems to cover this ground. However there doesn't seem to be any way to redirect a user within these event handlers.