modules/Users/authentication/EmailAuthenticate/EmailAuthenticateUser.php

Show: inherited
Table of Contents

\EmailAuthenticateUser

Package:

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

Parent(s)
\SugarAuthenticateUser

Properties

Propertypublic  $passwordLength= '4'
Default value4Details
Type
n/a

Methods

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

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

Inherited from: \SugarAuthenticateUser::authenticateUser()
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
inherited

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

Inherited from: \SugarAuthenticateUser::isSugarLogin()
Parameters
Name Type Description
$name STRING
$password \STRIUNG
Returns
Type Description
boolean
methodpublicloadUserOnLogin( STRING $name, STRING $password ) : boolean

this is called when a user logs in

Parameters
Name Type Description
$name STRING
$password STRING
Returns
Type Description
boolean
methodpublicloadUserOnSession( STRING $user_id = '' ) : boolean
inherited

Loads the current user bassed on the given user_id

Inherited from: \SugarAuthenticateUser::loadUserOnSession()
Parameters
Name Type Description
$user_id STRING
Returns
Type Description
boolean
methodpublicsendEmailPassword( \unknown_type $user_id, \unknown_type $password ) : void

Sends the users password to the email address or sends

Parameters
Name Type Description
$user_id \unknown_type
$password \unknown_type
Documentation was generated by DocBlox 0.18.1.