p
model
package model
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
case class
AuthToken
(uid: IdOptionLong, expiry: DateTime = DateTime.now + 3.hours, id: IdUuid = Id(UUID.randomUUID)) extends Product with Serializable
A token to authenticate a user for a short time.
A token to authenticate a user for a short time.
- uid
The unique ID of the user the token is associated with; type Id[Option[Long]\] is easier to work with than Id[Long]
- expiry
The DateTime the token expires.
- id
Unique token ID.
- final case class ClearTextPassword (value: String) extends AnyVal with Product with Serializable
- final case class EMail (value: String) extends AnyVal with Product with Serializable
-
case class
EMailFullName
(name: String, email: EMail) extends Product with Serializable
- returns
only the user name if the email is invalid or missing
- final case class EncryptedPassword (value: String) extends AnyVal with Product with Serializable
- trait IdJsonImplicits extends AnyRef
-
case class
User
(userId: UserId, email: EMail, firstName: String, lastName: String, password: EncryptedPassword, activated: Boolean = false, id: Id[Option[Long]] = Id.empty) extends HasId[User, Option[Long]] with Product with Serializable
- activated
set when the user clicks on a link in an activation email
- final case class UserId (value: String) extends AnyVal with Product with Serializable
Value Members
- object AuthToken extends IdImplicitLike with Serializable
- object EMail extends Serializable
- object PlayIdBinders extends IdImplicitLike
- object PlayUserIdBinders