When a user fails authentication, I want the username and password to be returned to the form. I\'m using the spring security core plugin with Grails and Spring Security LD
I was able to do the following to get the username back to the form: In LoginController.groovy:
render view: view, model: [postUrl: postUrl, rememberMeParameter: config.rememberMe.parameter, lastUsername: request.getSession().getAttribute("SPRING_SECURITY_LAST_USERNAME")]