Hi All,
I am facing problem to activate an user by click on activation link that sent by email.
Here is my code-
UserController.php:
public function actionCreate()
{
$model=new User;
// Uncomment the following line if AJAX validation is needed
$this->performAjaxValidation($model);
if(isset($_POST['User']))
{
$model->attributes=$_POST['User'];
$model->createtime=date('Y-m-d H:i:s');
$model->activationcode = sha1(mt_rand(10000, 99999).time().$model->email);
if($model->save())
{
$to = $model->email;
$subject = "Welcome To My Site!"
$message2 = "<h