modules/Users/authentication/SugarAuthenticate/SugarAuthenticateUser.php

Show: inherited
Table of Contents

\SugarAuthenticateUser

Package: SugarCRM

This file is where the user authentication occurs. No redirection should happen in this file.

Children
\LDAPAuthenticateUser
\EmailAuthenticateUser
\SAMLAuthenticateUser

Methods

methodpublicauthenticateUser( STRING $name, STRING $password, STRING $fallback = false ) : STRING

Does the actual authentication of the user and returns an id that will be used to load the current user (loadUserOnSession)

Parameters
Name Type Description
$name STRING
$password STRING
$fallback STRING
  • is this authentication a fallback from a failed authentication
Returns
Type Description
STRING id - used for loading the user
methodpublicisSugarLogin( STRING $name, \STRIUNG $password ) : boolean

Checks if a user is a sugarLogin user which implies they should use the sugar authentication to login

Parameters
Name Type Description
$name STRING
$password \STRIUNG
Returns
Type Description
boolean
methodpublicloadUserOnLogin( STRING $name, STRING $password, STRING $fallback = false,  $PARAMS = array() ) : boolean

this is called when a user logs in

Parameters
Name Type Description
$name STRING
$password STRING
$fallback STRING
  • is this authentication a fallback from a failed authentication
$PARAMS
Returns
Type Description
boolean
methodpublicloadUserOnSession( STRING $user_id = '' ) : boolean

Loads the current user bassed on the given user_id

Parameters
Name Type Description
$user_id STRING
Returns
Type Description
boolean
Documentation was generated by DocBlox 0.18.1.