modules/Users/authentication/AuthenticationController.php

Show: inherited
Table of Contents

\AuthenticationController

Package:

Properties

Propertypublic\SugarAuthenticate  $authController= ''

Details
Type
\SugarAuthenticate
Propertyprotected  $authcontrollerinstance= 'null'
static
Default valuenullDetails
Type
n/a
Propertypublic  $authenticated= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $loggedIn= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $loginSuccess= 'false'
Default valuefalseDetails
Type
n/a

Methods

methodpublic__construct( STRING $type = 'SugarAuthenticate' ) : \AuthenticationController

Creates an instance of the authentication controller and loads it

Parameters
Name Type Description
$type STRING
  • the authentication Controller - default to SugarAuthenticate
Returns
Type Description
\AuthenticationController -
methodpublicgetInstance( string $type = 'SugarAuthenticate' ) : \an
static

Returns an instance of the authentication controller

Parameters
Name Type Description
$type string

this is the type of authetnication you want to use default is SugarAuthenticate

Returns
Type Description
\an instance of the authetnciation controller
methodpubliclogin( string $username, string $password, array $PARAMS = array() ) : boolean

This function is called when a user initially tries to login.

Parameters
Name Type Description
$username string
$password string
$PARAMS array
Returns
Type Description
boolean true if the user successfully logs in or false otherwise.
methodpubliclogout( ) : void

Called when a user requests to logout. Should invalidate the session and redirect to the login page.

methodpublicsessionAuthenticate( ) : \booelan

This is called on every page hit.

It returns true if the current session is authenticated or false otherwise

Returns
Type Description
\booelan
Documentation was generated by DocBlox 0.18.1.