playframework - play framework form validation in scala -


working of play framework form validation in scala follows signup object, gives me error @ line "mapping(": "missing arguments method mapping in object forms; follow method `_' if want treat partially applied function"

case class userregistration(username: string, password1: string, password2: string)  val loginform = form(  mapping(    "username" -> email,    "password1" -> text,    "password2" -> text  )  (userregistration.apply)(userregistration.unapply)  verifying ("passwords must match",  => f.password1 == f.password2) ) 

case class userregistration(username: string, password1: string, password2: string)  val loginform = form(   mapping(     "username" -> email,     "password1" -> text,     "password2" -> text   )   (userregistration.apply)(userregistration.unapply)   verifying ("passwords must match", f => f.password1 == f.password2) ) 

your missing ("passwords must match", f => f.password1 == f.password2)


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -