* Added token type class * Storing Token Type as ID not varchar * Added new system to user class and fixed issues with it * Started on mail verification process in user class * Updated autoloader * Updated change password template Addresses #330
17 lines
515 B
PHP
17 lines
515 B
PHP
<?php
|
|
|
|
// Make sure we are called from index.php
|
|
if (!defined('SECURITY'))
|
|
die('Hacking attempt');
|
|
|
|
// Process password reset request
|
|
if ($user->initResetPassword($_POST['username'], $smarty)) {
|
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Please check your mail account to finish your password reset');
|
|
} else {
|
|
$_SESSION['POPUP'][] = array('CONTENT' => $user->getError(), 'TYPE' => 'errormsg');
|
|
}
|
|
|
|
// Tempalte specifics, user default template by parent page
|
|
$smarty->assign("CONTENT", "../default.tpl");
|
|
?>
|