diff options
Diffstat (limited to 'actions/user/passwordreset.php')
| -rw-r--r-- | actions/user/passwordreset.php | 42 |
1 files changed, 17 insertions, 25 deletions
diff --git a/actions/user/passwordreset.php b/actions/user/passwordreset.php index 683651d39..201d6abcf 100644 --- a/actions/user/passwordreset.php +++ b/actions/user/passwordreset.php @@ -1,27 +1,19 @@ <?php - /** - * Action to reset a password and send success email. - * - * @package Elgg - * @subpackage Core - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider Ltd - * @copyright Curverider Ltd 2008 - * @link http://elgg.org/ - */ +/** + * Action to reset a password and send success email. + * + * @package Elgg + * @subpackage Core + */ - require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - global $CONFIG; - - $user_guid = get_input('u'); - $code = get_input('c'); - - if (execute_new_password_request($user_guid, $code)) - system_message(elgg_echo('user:password:success')); - else - register_error(elgg_echo('user:password:fail')); - - forward($_SERVER['HTTP_REFERER']); - exit; - -?>
\ No newline at end of file +$user_guid = get_input('u'); +$code = get_input('c'); + +if (execute_new_password_request($user_guid, $code)) { + system_message(elgg_echo('user:password:success')); +} else { + register_error(elgg_echo('user:password:fail')); +} + +forward(); +exit; |
