/** * Initialize the array of users. Note, this is only done this way because the * users are hard-coded for this example. In your own code you would most likely * do a single lookup inside the Login method */ public function __construct() { if (!self::$USERS) { self::$USERS = array("demo" => password_hash("pass", PASSWORD_BCRYPT), "admin" => password_hash("pass", PASSWORD_BCRYPT)); } }