View settings with securesocial & play 2
I would like to customize securesocial views. I cannot find how to specify the action url for my forms.
When I try:
<form action="@routes.securesocial.controllers.Registration.handleSignUp(token)"
class="form-horizontal" autocomplete="off" method="POST">
In the route file, I set up the route:
POST /signup/:token securesocial.controllers.Registration.handleSignUp(token)
I have an error:
value securesocial is not a member of object controllers.routes
I don't find any samples.
How do I customize the form action? Thanks for any advice.
+3
lhuet
source
to share
1 answer
Given the views of the SecureSocial project, you should use
@securesocial.core.providers.utils.RoutesHelper.handleSignUp(token)
in your own mind.
I haven't tried it, but at least the project compiled successfully.
0
teemoo
source
to share