BUG 8829 PM 2.0 testing 16 Forgot Password genera un Fatal Error SOLVED.

- Cuando se configura el forgot password, no se aplica al hacer login en dicha ventana, es decir no se visualiza el link para enviar el otro password
- Adjustment in the forgot password in send mail, encryption of password, and correction in the visualization of the forgot password link on the classic skin.
This commit is contained in:
Hector Cortez
2012-04-26 11:41:42 -04:00
parent 97c383ea3e
commit 93fca85212
2 changed files with 8 additions and 2 deletions

View File

@@ -3366,6 +3366,12 @@ $output = $outputHeader.$output;
return G::LoadTranslation('ID_EMAIL_ENGINE_IS_NOT_ENABLED');
}
$passwd = $setup['MESS_PASSWORD'];
$passwdDec = G::decrypt($passwd,'EMAILENCRYPT');
if (strpos( $passwdDec, 'hash:' ) !== false) {
list($hash, $pass) = explode(":", $passwdDec);
$setup['MESS_PASSWORD'] = $pass;
}
$mail = new PHPMailer(true);
$mail->From = $from != '' && $from ? $from : $setup['MESS_ACCOUNT'];
$mail->FromName = $fromName;

View File

@@ -27,7 +27,7 @@
<JS type="javascript"><![CDATA[
// enable/disable forgot password link
if(flagForgotPassword == 'on' )
if(flagForgotPassword == 'on' || flagForgotPassword == '1')
document.getElementById("form[FORGOT_PASWORD_LINK]").style.display = 'block';//hideRowById('FORGOT_PASWORD_LINK');
var panel;