Have you tried
domain.findAllByInsname(..)?
Or even
domain.findAll("from YourDomain d where INSNAME = :insname", [insname: params.insname])
Hope to help.
Type: Posts; User: volnei.munhoz; Keyword(s):
Have you tried
domain.findAllByInsname(..)?
Or even
domain.findAll("from YourDomain d where INSNAME = :insname", [insname: params.insname])
Hope to help.
Hi spgmx, thank you! I think that this is the solution, but I believe I'll need to wait until it is implemented by spring-security-core grails plugin.
=/
Thanks Rob, I've found a similar solution in Grails user list, but the real problem is that I need two different login pages, the layout and some rules are different from each one.
Is there any way to have two login pages (in grails) that each one redirects to a specified default url?
admin/login -> redirect to /admin/dashboard
user/login -> redirect to /user/dashboard
...