Baseline for implementing an authentication controller in your application using InfusedAuth.

You must create a controller that extends this controller such class Controller_Auth extends \InfusedAuth\Controller_InfusedAuth Usage: You can use the built in view scaffolding by default or create your views and link actions as follows: 3rd party login = /session/provider //see NinjAuth for more details properitery login = just post back to same script. you can override posthandler_login and posthandler_register to customize forgot password = /reset_password resend validation = /send_validation - requires post values of username which is username_or_email and password Customizing Validation coming soon... TODO: Add validation customization info

 Methods

Defaults to login view

action_index() 

action_logout()

action_logout() 

action_register()

action_register() 

action_send_validation_request()

action_send_validation_request() 

action_verify()

action_verify($code1, $code2) 

Parameters

$code1

$code2

action_wall()

action_wall() 

before()

before() 

Override this function to customize the login view generation such as for themes or customized views outside the scope of just setting the location to your view file in the config setting.

registration_view(\InfusedAuth\$data $data) : mixed

Parameters

$data

\InfusedAuth\$data

View data. Recommend you add data to this vs. overwrite.

Returns

mixed

verification_pending_view()

verification_pending_view($data) 

Parameters

$data

wall_view()

wall_view($data) 

Parameters

$data

build_profile_fields()

build_profile_fields(\InfusedAuth\$all_fields $all_fields, \InfusedAuth\$profile_fields $profile_fields) : \InfusedAuth\$profile

Parameters

$all_fields

\InfusedAuth\$all_fields

This is the Input::post() values for the submitted registration form

$profile_fields

\InfusedAuth\$profile_fields

This ist he configuration value that identifies which fields to include in the profile

Returns

\InfusedAuth\$profileArray of fields.