net.liftmodules.salatauth
User entity prototype.
You should define your entity extending this class. For example:
case class User( val _id: ObjectId, override val username: String, override val password: String, val realName: String, val email: String, override val roles: Set[String], val phone: String ) extends ProtoUser(username, password, roles)
To allow your roles be serialized you have to set SalatAuth.rolesCollections in your Boot.scala.
Searches for roles in MongoDB
Checks if the password match with this user password
Password to be checked
Returns a set of permissions for this user.
User entity prototype.
You should define your entity extending this class. For example:
To allow your roles be serialized you have to set SalatAuth.rolesCollections in your Boot.scala.