Piwik\Db\Schema\Mysql::createAnonymousUser PHP Method

createAnonymousUser() public method

Creates an entry in the User table for the "anonymous" user.
public createAnonymousUser ( )
    public function createAnonymousUser()
    {
        // The anonymous user is the user that is assigned by default
        // note that the token_auth value is anonymous, which is assigned by default as well in the Login plugin
        $db = $this->getDb();
        $db->query("INSERT IGNORE INTO " . Common::prefixTable("user") . "\n                    VALUES ( 'anonymous', '', 'anonymous', '[email protected]', 'anonymous', 0, '" . Date::factory('now')->getDatetime() . "' );");
    }