58 $this->_sForgotEmail = $sEmail;
59 $oEmail =
oxNew(
'oxemail');
64 $iSuccess = $oEmail->sendForgotPwdEmail($sEmail);
66 if ($iSuccess !==
true) {
67 $sError = ($iSuccess ===
false) ?
'ERROR_MESSAGE_PASSWORD_EMAIL_INVALID' :
'MESSAGE_NOT_ABLE_TO_SEND_EMAIL';
68 oxRegistry::get(
"oxUtilsView")->addErrorToDisplay($sError,
false,
true);
69 $this->_sForgotEmail =
false;
79 public function updatePassword()
84 $oUser =
oxNew(
'oxuser');
88 if (($oExcp = $oInputValidator->checkPassword($oUser, $sNewPass, $sConfPass,
true))) {
89 return oxRegistry::get(
"oxUtilsView")->addErrorToDisplay($oExcp->getMessage(),
false,
true);
93 if ($oUser->loadUserByUpdateId($this->getUpdateId())) {
96 $oUser->setPassword($sNewPass);
99 $oUser->setUpdateKey(
true);
107 return 'forgotpwd?success=1';
112 return $oUtilsView->addErrorToDisplay(
'ERROR_MESSAGE_PASSWORD_LINK_EXPIRED',
false,
true);
154 $blExpired =
oxNew(
'oxuser')->isExpiredUpdateId($sKey);
181 $aPath[
'title'] =
oxRegistry::getLang()->translateString(
'FORGOT_PASSWORD', $iBaseLanguage,
false);
182 $aPath[
'link'] = $this->
getLink();
195 $sTitle =
'FORGOT_PASSWORD';
198 $sTitle =
'NEW_PASSWORD';
200 $sTitle =
'CHANGE_PASSWORD';