modules/Users/authentication/SugarAuthenticate/SugarAuthenticateUser.php
Package: SugarCRMThis file is where the user authentication occurs. No redirection should happen in this file.
- Children
- \LDAPAuthenticateUser
- \EmailAuthenticateUser
- \SAMLAuthenticateUser
Methods



authenticateUser(
STRING $name, STRING $password, STRING $fallback
=
false
)
:
STRINGDoes 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 |



isSugarLogin(
STRING $name, \STRIUNG $password
)
:
booleanChecks 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



loadUserOnLogin(
STRING $name, STRING $password, STRING $fallback
=
false, $PARAMS
=
array()
)
:
booleanthis 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



loadUserOnSession(
STRING $user_id
=
''
)
:
booleanLoads the current user bassed on the given user_id
Parameters
| Name |
Type |
Description |
| $user_id |
STRING |
|
Returns