aboutsummaryrefslogtreecommitdiff
path: root/actions/email
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 15:16:50 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 15:16:50 +0000
commit4a92ecbc2d4ece4e2c2e5d0b7a7f8b2a6190a285 (patch)
treebc409fa9efce6529492465c0284c5f7e265e6e49 /actions/email
parent8d90e1b4719d052398b4d7c6b5618fea11399f4d (diff)
downloadelgg-4a92ecbc2d4ece4e2c2e5d0b7a7f8b2a6190a285.tar.gz
elgg-4a92ecbc2d4ece4e2c2e5d0b7a7f8b2a6190a285.tar.bz2
Closes #227. Depends on #243 to work.
git-svn-id: https://code.elgg.org/elgg/trunk@1903 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/email')
-rw-r--r--actions/email/confirm.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/actions/email/confirm.php b/actions/email/confirm.php
index 64c2c766a..39eb68908 100644
--- a/actions/email/confirm.php
+++ b/actions/email/confirm.php
@@ -14,6 +14,9 @@
global $CONFIG;
// Get user id
+ $access_status = access_get_show_hidden_status();
+ access_show_hidden_entities(true);
+
$user_guid = (int)get_input('u');
$user = get_entity($user_guid);
@@ -26,6 +29,8 @@
system_message(elgg_echo('email:confirm:success'));
$user = get_entity($user_guid);
+ $user->enable();
+
notify_user($user_guid, $CONFIG->site->guid, sprintf(elgg_echo('email:validate:success:subject'), $user->username), sprintf(elgg_echo('email:validate:success:body'), $user->name), NULL, 'email');
} else
@@ -33,6 +38,8 @@
}
else
register_error(elgg_echo('email:confirm:fail'));
+
+ access_show_hidden_entities($access_status);
forward($_SERVER['HTTP_REFERER']);
exit;