73 if (($oExcp = $oInputValidator->checkPassword($oUser, $sNewPass, $sConfPass,
true))) {
74 switch ($oExcp->getMessage()) {
75 case 'ERROR_MESSAGE_INPUT_EMPTYPASS':
76 case 'ERROR_MESSAGE_PASSWORD_TOO_SHORT':
78 'ERROR_MESSAGE_PASSWORD_TOO_SHORT',
84 'ERROR_MESSAGE_PASSWORD_DO_NOT_MATCH',
91 if (!$sOldPass || !$oUser->isSamePassword($sOldPass)) {
95 return $oUtilsView->addErrorToDisplay(
'ERROR_MESSAGE_CURRENT_PASSWORD_INVALID',
false,
true);
99 $oUser->setPassword($sNewPass);
100 if ($oUser->save()) {
101 $this->_blPasswordChanged =
true;
130 $iBaseLanguage = $oLang->getBaseLanguage();
131 $aPath[
'title'] = $oLang->translateString(
'MY_ACCOUNT', $iBaseLanguage,
false);
132 $aPath[
'link'] = $oSeoEncoder->getStaticUrl($this->
getViewConfig()->getSelfLink() .
'cl=account');
135 $aPath[
'title'] = $oLang->translateString(
'CHANGE_PASSWORD', $iBaseLanguage,
false);
136 $aPath[
'link'] = $this->
getLink();