Methods

_init()

_init() 

static Loads simpleauth, ninjauth, and infused auth config files.

This function either creates a new user of \Model_User or of \Model_TempUser. If the configuration setting of account_validation is set to true it will create a Model_TempUser and send the user an email which can be configured in the config file. If bypass_verification is set to true a Model_User will be created with no email verification regardless of settings.

create_user(string $username, string $password, string $email, int $group, Array $profile_fields, bool $thirdparty, bool $bypass_verification) 

If the beta_wall configuration is set it will assign the beta_group_id instead of the default.

returns \Model_User|\Model_TempUser|false

Parameters

$username

string

username

$password

string

password

$email

string

email address

$group

int

group id

$profile_fields

Array

profile fields

$thirdparty

bool

thirdparty adapter making the call

$bypass_verification

bool

bypass_verification overrides config setting if verification is enabled

Exceptions

\InfusedAuth\SimpleUserUpdateException, SimpleUserValidationException

get_profile_fields()

get_profile_fields() 

send_validation()

send_validation($temp_user_id) : bool

Parameters

$temp_user_id

Exceptions

\InfusedAuth\SimpleUserValidationException

Returns

bool

Identifies if the credentials belong to a temp_user

validate_tempuser($username_or_email, $password) 

Parameters

$username_or_email

$password

Uses email to check to see if the user has connected with Facebook or another way and already verified their account that way.

verify($code1, $code2) : bool | \Model_User

Parameters

$code1

$code2

Returns

bool\Model_User