Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails Spring Security Login/Logout Controllers not generated

I am trying to learn Grails along with the Spring Security plugin. I am using Grails 2.3.0 with springsecurity-RC2 plugin and following the guide on the Grails website.

The issue I am running into is that the generated LoginController.groovy and LogoutController.groovy files from the s2-quickstart script are not being generated in the grails-app/controller, instead they are in target/work/springsecurity/grails-app/controller.

This issue does not seem to occur in grails 2.1.5 but does in 2.2.4. Is there anyway for me to fix these issues or do I not need them?

like image 320
milkphany Avatar asked Oct 16 '13 07:10

milkphany


1 Answers

This is by design. The files aren't generated anymore, they're included in the plugin itself. If you need to modify them, copy the controller and/or GSPs to your project in the same location under grails-app and make your changes there. Apps can always override plugin classes using this approach since Grails compiles plugins first, then the app.

like image 88
Burt Beckwith Avatar answered Oct 22 '22 14:10

Burt Beckwith