bugzilla%micropipes.com 0e4e0f76cd - Ratecomment is now secured
- Made create, verify, recover, and reset scripts


git-svn-id: svn://10.0.0.236/trunk@188423 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-29 06:49:48 +00:00

36 lines
814 B
PHP

<?php
/**
* Verify a newly created account
*
* @package amo
* @subpackage docs
*
*/
startProcessing('verifyaccount.tpl', null, null, 'nonav');
require_once 'includes.php';
if (! (array_key_exists('email', $_GET) && array_key_exists('confirmationcode', $_GET)) ) {
triggerError('There was an error processing your request.');
}
$user = user::getUserByEmail($_GET['email']);
// Most likely not a valid email
if ($user===false) {
triggerError('There was an error processing your request.');
}
$confirmed = $user->confirm($_GET['confirmationcode']);
// Assign template variables.
$tpl->assign(
array( 'title' => 'Verify your Mozilla Addons Account',
'currentTab' => null,
'email' => $_GET['email'],
'confirmed' => $confirmed
)
);
?>