I have an action that allows the user to change the password. When everything will be fine, I would like to exit it and show a message that everything went well, and now he needs to log in using his new password.
I tried:
flash.message = "You may now login with your new password"
redirect (controller: 'logout')
The fact is that the Logout controller redirects to:
redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl
And my flash message no longer exists when the user definitely logged out and returned to the main page. Any ideas how to make it work, or maybe workarounds?
source
share