70 if ( ( $oExcp = $oUser->checkPassword( $sNewPass, $sConfPass,
true ) ) ) {
71 switch ( $oExcp->getMessage() ) {
72 case 'ERROR_MESSAGE_INPUT_EMPTYPASS':
73 case 'ERROR_MESSAGE_PASSWORD_TOO_SHORT':
74 return oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'ERROR_MESSAGE_PASSWORD_TOO_SHORT',
false,
true);
76 return oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'ERROR_MESSAGE_PASSWORD_DO_NOT_MATCH',
false,
true);
80 if ( !$sOldPass || !$oUser->isSamePassword( $sOldPass ) ) {
81 return oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'ERROR_MESSAGE_CURRENT_PASSWORD_INVALID',
false,
true);
85 $oUser->setPassword( $sNewPass );
86 if ( $oUser->save() ) {
87 $this->_blPasswordChanged =
true;
118 $aPath[
'link'] = $this->
getLink();