src/ViKon/Auth/AuthSeederTrait.php
protected function createUserRecord($username, $password, array $options = [])
    {
        return [
            // Username
            User::FIELD_USERNAME => $username,
            // Password
            User::FIELD_PASSWORD => bcrypt($password),
            // Email
            User::FIELD_EMAIL    => array_key_exists(User::FIELD_EMAIL, $options)
                ? $options[User::FIELD_EMAIL]
                : $username . '@local . com',
            // Home
            User::FIELD_HOME     => array_key_exists(User::FIELD_HOME, $options)
                ? $options[User::FIELD_HOME]
                : null,
            // Is blocked
            User::FIELD_BLOCKED  => array_key_exists(User::FIELD_BLOCKED, $options)
                ? $options[User::FIELD_BLOCKED]
                : false,
            // Is static
            User::FIELD_STATIC   => array_key_exists(User::FIELD_STATIC, $options)
                ? $options[User::FIELD_STATIC]
                : false,
            // Is hidden
            User::FIELD_HIDDEN   => array_key_exists(User::FIELD_HIDDEN, $options)
                ? $options[User::FIELD_HIDDEN]
                : false,
        ];
    }
protected function createUserRecord($username, $password, array $options = [])
    {
        return [
            // Username
            User::FIELD_USERNAME => $username,
            // Password
            User::FIELD_PASSWORD => bcrypt($password),
            // Email
            User::FIELD_EMAIL    => array_key_exists(User::FIELD_EMAIL, $options)
                ? $options[User::FIELD_EMAIL]
                : $username . '@local . com',
            // Home
            User::FIELD_HOME     => array_key_exists(User::FIELD_HOME, $options)
                ? $options[User::FIELD_HOME]
                : null,
            // Is blocked
            User::FIELD_BLOCKED  => array_key_exists(User::FIELD_BLOCKED, $options)
                ? $options[User::FIELD_BLOCKED]
                : false,
            // Is static
            User::FIELD_STATIC   => array_key_exists(User::FIELD_STATIC, $options)
                ? $options[User::FIELD_STATIC]
                : false,
            // Is hidden
            User::FIELD_HIDDEN   => array_key_exists(User::FIELD_HIDDEN, $options)
                ? $options[User::FIELD_HIDDEN]
                : false,
        ];
    }
protected function createUserRecord ( $ username , $ password , array $ options = [ ] ) { return [ // Username User :: FIELD_USERNAME => $ username , // Password User :: FIELD_PASSWORD => bcrypt ( $ password ) , // Email User :: FIELD_EMAIL => array_key_exists ( User :: FIELD_EMAIL , $ options ) ? $ options [ User :: FIELD_EMAIL ] : $ username . '@local . com' , // Home User :: FIELD_HOME => array_key_exists ( User :: FIELD_HOME , $ options ) ? $ options [ User :: FIELD_HOME ] : null , // Is blocked User :: FIELD_BLOCKED => array_key_exists ( User :: FIELD_BLOCKED , $ options ) ? $ options [ User :: FIELD_BLOCKED ] : false , // Is static User :: FIELD_STATIC => array_key_exists ( User :: FIELD_STATIC , $ options ) ? $ options [ User :: FIELD_STATIC ] : false , // Is hidden User :: FIELD_HIDDEN => array_key_exists ( User :: FIELD_HIDDEN , $ options ) ? $ options [ User :: FIELD_HIDDEN ] : false , ] ; }
Create single user record

@param string $username authentication username
@param string $password authentication password
@param array  $options  additional column values

@return array array with user field values
Create single user record