Methods

This function parses the various 3rd party accounts to turn them into consistent user profile information.

create_user(array $user_hash) : \NinjAuth\user_id | false

If username is not set, we set username equal to uid If password is not set, we set password to a random string If image is available we set it as avatar in a profile field. If urls is set we set it as urls in a profile field. If name is set we set it as full_name in a profile field.

Parameters

$user_hash

array

Expects username|uid, email

Returns

\NinjAuth\user_idfalse