securesocial
securesocial copied to clipboard
Contribution of pgsql support for AuthenticatorStore and UserService - Compatible with Play! 2.1 version
pgsql support for AuthenticatorStore provides persistent and clusterisable implementation. Same for UserService. Pgsql support for UserService is based on Some(implementation) found on Play! mailing list, which was also submitted 3 month ago as a pull request. SQL scripts are provided. Dependencies on anorm and jdbc are required.
I am giving this code a try and I noticed you have some unnecessary/duplicate imports.
Also on PgSqlUserService.scala
, you should replace user.passwordInfo.get.password
with user.passwordInfo.map(_.password).getOrElse(None)
because many social services won't have one and you'll get a null pointer exception