Tuesday 19 August 2008 6:26:56 pm - 2 replies
Hello,
Currently, there is not a reissuing system for the activation mail.
Why not use the forgotpassword function for activate account after mail validation?
Tuesday 19 August 2008 11:51:38 pm
A little patch for view :
diff -up ./kernel/user/forgotpassword.php.fix ./kernel/user/forgotpassword.php
--- ./kernel/user/forgotpassword.php.fix 2007-12-03 22:51:20.000000000 +0100
+++ ./kernel/user/forgotpassword.php 2008-08-19 23:48:44.000000000 +0200
@@ -58,12 +58,18 @@ if ( strlen( $hashKey ) == 32 )
$passwordConfirm = $password;
$userToSendEmail = $user;
- $user->setInformation( $user->id(), $user->attribute( 'login' ), $email, $password, $passwordConfirm );
+ $userID = $user->id();
+ $user->setInformation( $userID, $user->attribute( 'login' ), $email, $password, $passwordConfirm );
+ /* Use forgotpassword for a reissue activation mail */
+ $userSetting = eZUserSetting::fetch( $userID );
+ $userSetting->setAttribute( 'is_enabled', 1 );
+
$db = eZDB::instance();
$db->begin();
- $user->store();
+ $user->store();
+ $userSetting->store();
require_once( "kernel/common/template.php" );
//include_once( 'lib/ezutils/classes/ezmail.php' );
Modified on Thursday 21 August 2008 10:10:05 am by Guillaume Kulakowski
Thursday 21 August 2008 12:20:12 pm
I have open a bug for that : http://issues.ez.no/IssueView.php?Id=13522&activeItem=1
You must be logged in to post messages in this topic!