Detailed Description
Definition at line 2 of file forgot_password.php.
Member Function Documentation
| create_reset_password_table |
( |
| ) |
|
Creates th reset password table that keeps track of reset password requests.
Definition at line 98 of file forgot_password.php.
| delete_request_with_uuid |
( |
|
$uuid | ) |
|
| reset_password_with_uuid |
( |
|
$uuid | ) |
|
| send_reset_email_for_email |
( |
|
$email | ) |
|
Sends reset email to a particular email address. This first checks to see if the email address belongs to a valid user account.
- Parameters
-
| string | $email | The email address to send to. |
- Returns
- void
- Exceptions
-
| Exception | Code: self::$EX_MULTIPLE_USERS_WITH_SAME_EMAIL |
| Exception | Code: self::$EX_NO_USERS_WITH_EMAIL |
| Exception | Code: self::$EX_NO_EMAIL_COLUMN_FOUND |
Definition at line 158 of file forgot_password.php.
Sends the reset email to a particular user.
- Parameters
-
- Returns
- true on success
- Exceptions
-
| Exception | code: self::$EX_NO_USERNAME_FOR_USER If username is blank |
| Exception | code: self::$EX_NO_EMAIL_COLUMN_FOUND No email column was found in the users table. |
| Exception | code: self::$EX_NO_USERS_FOUND_WITH_EMAIL If the user record doesn't have an email address. |
Definition at line 186 of file forgot_password.php.
| send_reset_email_for_username |
( |
|
$username | ) |
|
Field Documentation
| $EX_MULTIPLE_USERS_WITH_SAME_EMAIL = 500 |
|
static |
| $EX_MULTIPLE_USERS_WITH_SAME_USERNAME = 509 |
|
static |
| $EX_NO_EMAIL_COLUMN_FOUND = 502 |
|
static |
| $EX_NO_EMAIL_FOR_USER = 507 |
|
static |
| $EX_NO_USERNAME_COLUMN_FOUND = 504 |
|
static |
| $EX_NO_USERNAME_FOR_USER = 503 |
|
static |
| $EX_NO_USERS_FOUND_WITH_USERNAME = 508 |
|
static |
| $EX_NO_USERS_WITH_EMAIL = 501 |
|
static |
| $TABLE_RESET_PASSWORD = 'dataface__reset_password' |
|
static |
The documentation for this class was generated from the following file: