summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-11-15 18:25:49 +0000
committerChristian Fowler <spider@viovio.com>2006-11-15 18:25:49 +0000
commit941e651e0618b16754db1c14fc990a79621923ab (patch)
tree8e247f0a9002f14863e5c0b347fb7eb0052b4788
parent45c64630a6a24430b22e4276b412ceeb060e78ac (diff)
downloadusers-941e651e0618b16754db1c14fc990a79621923ab.tar.gz
users-941e651e0618b16754db1c14fc990a79621923ab.tar.bz2
users-941e651e0618b16754db1c14fc990a79621923ab.zip
fix user validate registration
-rw-r--r--BitUser.php10
-rw-r--r--templates/user_validation_mail.tpl2
2 files changed, 6 insertions, 6 deletions
diff --git a/BitUser.php b/BitUser.php
index 7c89f66..9de90fd 100644
--- a/BitUser.php
+++ b/BitUser.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.113 2006/11/15 16:33:07 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.114 2006/11/15 18:25:48 spiderr Exp $
*
* Lib for user administration, groups and permissions
* This lib uses pear so the constructor requieres
@@ -12,7 +12,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: BitUser.php,v 1.113 2006/11/15 16:33:07 spiderr Exp $
+ * $Id: BitUser.php,v 1.114 2006/11/15 18:25:48 spiderr Exp $
* @package users
*/
@@ -40,7 +40,7 @@ define("ACCOUNT_DISABLED", -6);
* Class that holds all information for a given user
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.113 $
+ * @version $Revision: 1.114 $
* @package users
* @subpackage BitUser
*/
@@ -323,7 +323,6 @@ class BitUser extends LibertyAttachable {
// jht 2005-06-22_23:51:58 $pParamHash['admin_add'] is set on adds from admin page - a kludge
// that should be fixed in some better way.
if(empty($pParamHash['admin_add']) && $gBitSystem->isFeatureActive( 'users_validate_user' ) ) {
- $pParamHash['password'] = $this->genPass();
$pParamHash['user_store']['provpass'] = md5(BitSystem::genPass());
$pParamHash['pass_due'] = 0;
} elseif( empty( $pParamHash['password'] ) ) {
@@ -559,7 +558,8 @@ return false;
// Send the mail
$gBitSmarty->assign('msg',tra('You will receive an email with information to login for the first time into this site'));
$gBitSmarty->assign('mail_machine',$machine);
- $gBitSmarty->assign('mail_apass',$apass);
+ $gBitSmarty->assign('mailUserId',$this->mUserId);
+ $gBitSmarty->assign('mailProvPass',$apass);
$mail_data = $gBitSmarty->fetch('bitpackage:users/user_validation_mail.tpl');
mail($pParamHash["email"], $siteName.' - '.tra('Your registration information'),$mail_data,"From: ".$gBitSystem->getConfig('site_sender_email')."\r\nContent-type: text/plain;charset=utf-8\r\n");
$gBitSmarty->assign('showmsg','y');
diff --git a/templates/user_validation_mail.tpl b/templates/user_validation_mail.tpl
index 81daf86..159ad51 100644
--- a/templates/user_validation_mail.tpl
+++ b/templates/user_validation_mail.tpl
@@ -4,6 +4,6 @@
{tr}If you want to be a registered user in this site you will have to use the following link to login for the first time:{/tr}
-{$mail_machine}?user={$mail_user}&pass={$mail_apass}
+{$mail_machine}?v={$mailUserId}:{$mailProvPass}
{tr}Enjoy the site!{/tr}