From: Sergei I. G. <si...@us...> - 2001-09-17 09:32:13
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv30374/chat Modified Files: profile_reg.php3 Log Message: Add pmcProfPassword to session data only when don't used "send password by email". Index: profile_reg.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_reg.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** profile_reg.php3 2001/06/13 18:13:29 1.17 --- profile_reg.php3 2001/09/17 09:32:11 1.18 *************** *** 190,198 **** include('./lib/gen_password.lib.' . C_EXTENSION); $pmcProfPassword = pmcGenPassword(); - } // Sends the password to the e-mail address if required - if (C_EMAIL_PASWD) - { $recipient = array($pmcProfEmail => array($pmcProfNick, L_CHARSET)); $subject = '[' . APP_NAME . '] ' . L_EMAIL_VAL_1; --- 190,195 ---- *************** *** 236,240 **** $dbSessionVars['nick'] = $pmcProfNick; ! $dbSessionVars['password'] = $pmcProfPassword; dbSessionSave(); // The db link should be closed but this can't be done under Apache because --- 233,238 ---- $dbSessionVars['nick'] = $pmcProfNick; ! $dbSessionVars['password'] = (C_EMAIL_PASWD) ? "" : $pmcProfPassword; ! dbSessionSave(); // The db link should be closed but this can't be done under Apache because |