val signupForm = Form(
of(NewUser)(
"email" -> of[String],
"password" -> of[String],
"confirmation" -> of[String],
"nickname" -> of[String]
)
)
Anybody has a clever solution to add a verify on the "password" field
to match "confirmation"? The easy way out would be to put it at the
bottom:
...
"nickname" -> of[String]
)
) verifying (
"Passwords do not match",
(user: NewUser) => user.password == user.confirmation
)
But that would mean the "password" field on the view wouldn't know
about its validation error. That's fine for some cases, but far from
ideal, I think.
Ideas?
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
--
Guillaume Bort