Public Member Functions | |
authenticate () | |
redirect ($url=null) | |
cancel ($url=null) | |
getEmail () | |
getName () | |
getError () | |
![]() | |
__get ($name) | |
__isset ($name) | |
init ($component, $options=array()) | |
getServiceName () | |
getServiceTitle () | |
getServiceType () | |
getJsArguments () | |
setComponent ($component) | |
getComponent () | |
setRedirectUrl ($url) | |
getRedirectUrl () | |
setCancelUrl ($url) | |
getCancelUrl () | |
getIsAuthenticated () | |
getId () | |
getAttributes () | |
getAttribute ($key, $default=null) | |
hasAttribute ($key) | |
getItem () | |
getItemAttributes () | |
![]() | |
cancel () |
Public Attributes | |
const | ERROR_NONE = 0 |
const | ERROR_AUTH_FAILED = 1 |
const | ERROR_ACTIVATION_MAIL_SENT = 2 |
const | ERROR_ACTIVATION_MAIL_FAILED = 3 |
$username | |
$password | |
$errorCode | |
$user = null |
Protected Attributes | |
$name = 'email' | |
$title = 'E-mail' | |
$type = 'email' | |
![]() | |
$name | |
$title | |
$type | |
$jsArguments = array() | |
$attributes = array() | |
$authenticated = false |
Additional Inherited Members | |
![]() | |
makeRequest ($url, $options=array(), $parseJson=true) | |
initRequest ($url, $options=array()) | |
parseJson ($response) | |
fetchJsonError ($json) | |
getStateKeyPrefix () | |
setState ($key, $value, $defaultValue=null) | |
hasState ($key) | |
getState ($key, $defaultValue=null) | |
fetchAttributes () | |
_fetchAttributes () |
Definition at line 5 of file EmailService.php.
string password field put here password with which you want to EmailService::authenticate | ( | ) |
This function simply tries to authenticate auth identity (see docs about user authenticating behaviour)
Reimplemented from EAuthServiceBase.
Definition at line 59 of file EmailService.php.
References ERROR_AUTH_FAILED, ERROR_NONE, and User\model().
EmailService::cancel | ( | $url = null | ) |
Simply redirects user to the specified url (if not specified, cancelUrl property will be used instead)
We have to override this function, because email authentication doesn't require popup.
string | $url |
Reimplemented from EAuthServiceBase.
Definition at line 102 of file EmailService.php.
References EAuthServiceBase\getCancelUrl().
EmailService::redirect | ( | $url = null | ) |
Simply redirects user to the specified url (if not specified, redirectUrl property will be used instead)
We have to override this function, because email authentication doesn't require popup.
string | $url |
Reimplemented from EAuthServiceBase.
Definition at line 91 of file EmailService.php.
References EAuthServiceBase\getRedirectUrl().
const EmailService::ERROR_ACTIVATION_MAIL_FAILED = 3 |
Error occured while trying to send activation mail.
Definition at line 23 of file EmailService.php.
const EmailService::ERROR_ACTIVATION_MAIL_SENT = 2 |
No errors occured. Activation mail to user was sent and user will be registered as soon as he will click the activation url in the email message body.
Definition at line 19 of file EmailService.php.
const EmailService::ERROR_AUTH_FAILED = 1 |
Failed to authenticate authentication identity (email-password mismatch).
Definition at line 14 of file EmailService.php.
Referenced by authenticate().
const EmailService::ERROR_NONE = 0 |