aboutsummaryrefslogtreecommitdiff
path: root/actions/user/passwordreset.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-14 20:41:19 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-14 20:41:19 +0000
commit12d286988dbcdff5aad3620838e7ab777ac67a92 (patch)
tree9d73437fbfb39f3f9f3c27852e70ec1f71aed0eb /actions/user/passwordreset.php
parent501c0e13cc4db687abb36a937709f8e9de643339 (diff)
downloadelgg-12d286988dbcdff5aad3620838e7ab777ac67a92.tar.gz
elgg-12d286988dbcdff5aad3620838e7ab777ac67a92.tar.bz2
Standardized actions/*
git-svn-id: http://code.elgg.org/elgg/trunk@3542 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/user/passwordreset.php')
-rw-r--r--actions/user/passwordreset.php45
1 files changed, 22 insertions, 23 deletions
diff --git a/actions/user/passwordreset.php b/actions/user/passwordreset.php
index ea744b955..c6d8a70b1 100644
--- a/actions/user/passwordreset.php
+++ b/actions/user/passwordreset.php
@@ -1,25 +1,24 @@
<?php
- /**
- * Action to reset a password and send success email.
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
+/**
+ * Action to reset a password and send success email.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- 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();
- exit;
-
-?> \ No newline at end of file
+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();
+exit;