From 93fca85212df9f30a02a2c78d833242cc0503d1f Mon Sep 17 00:00:00 2001 From: Hector Cortez Date: Thu, 26 Apr 2012 11:41:42 -0400 Subject: [PATCH] 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. --- gulliver/system/class.g.php | 8 +++++++- workflow/engine/xmlform/login/login.xml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index 609d4e02f..3459fbb0c 100755 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -3365,7 +3365,13 @@ $output = $outputHeader.$output; if (!$setup['MESS_ENABLED']) { 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; diff --git a/workflow/engine/xmlform/login/login.xml b/workflow/engine/xmlform/login/login.xml index 59870f70d..ab37b9d61 100755 --- a/workflow/engine/xmlform/login/login.xml +++ b/workflow/engine/xmlform/login/login.xml @@ -27,7 +27,7 @@