API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
UserModelReset::_sendConfirmationMail | ( | $ | email, |
$ | token | ||
) |
Sends a password reset request confirmation to the specified e-mail address with the specified token.
string | An e-mail address |
string | An md5 hashed randomly generated string |
Références $config, $uri, $url, JURI::base(), JFactory::getConfig(), JFactory::getURI(), JUtility::sendMail(), et JText::sprintf().
UserModelReset::completeReset | ( | $ | password1, |
$ | password2 | ||
) |
Takes the new password and saves it to the database. It will only save the password if the user has the correct user id and token stored in her session.
string | New Password |
string | New Password |
Références $db, $id, $mainframe, $query, $user, JText::_(), JUserHelper::genRandomPassword(), JUserHelper::getCryptedPassword(), JFactory::getDBO(), JDispatcher::getInstance(), JPluginHelper::importPlugin(), et jimport().
UserModelReset::confirmReset | ( | $ | token, |
$ | username | ||
) |
Checks a user supplied token for validity If the token is valid, it pushes the token and user id into the session for security checks.
token | An md5 hashed randomly generated string |
Références $db, $mainframe, $parts, JText::_(), JUserHelper::getCryptedPassword(), JFactory::getDBO(), et jimport().
UserModelReset::requestReset | ( | $ | ) |
Verifies the validity of a username/e-mail address combination and creates a token to verify the request was initiated by the account owner. The token is sent to the account owner by e-mail
string | Username string |
string | E-mail address |
Références $db, $id, $query, JText::_(), JUserHelper::genRandomPassword(), JFactory::getDBO(), JUtility::getHash(), JUserHelper::getSalt(), JMailHelper::isEmailAddress(), et jimport().
UserModelReset::$_namespace = 'com_user.reset.' |