4/18/2014 - 11:36 PM

The com.actoboard.auth.HumanUser class comment by @bluxte

The com.actoboard.auth.HumanUser class comment by @bluxte

package com.actoboard.auth

import org.mindrot.jbcrypt.BCrypt

import com.actoboard.base.mongo._
import com.fasterxml.jackson.annotation.{JsonTypeName, JsonView}
import com.actoboard.base.util.StringUtils

 * A human principal.
 * Our interpretation of "human" is simpler than the Turing test: we consider as being human some
 * entity who has an email and a password to connect to Actoboard. If you can train your cat to
 * type a valid email address and password, then we'll consider it as a human-like principal.
 * Aliens who satisfy these constraints are accepted too, provided their name, email and password
 * can be encoded in UTF-8.
case class HumanUser (
        id: EntityId[ActoPrincipal],