aboutsummaryrefslogtreecommitdiff
path: root/actions/register.php
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/register.php
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/register.php')
-rw-r--r--actions/register.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/actions/register.php b/actions/register.php
index 38d1893b9..059e69f50 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -39,15 +39,19 @@
) &&
($guid = register_user($username, $password, $name, $email))
) {
+
+ $new_user = get_entity($guid);
if (($guid) && ($admin))
{
admin_gatekeeper(); // Only admins can make someone an admin
- $new_user = get_entity($guid);
$new_user->admin = 'yes';
}
// Send email validation on register only
request_email_validation($guid);
+
+ // Now disable
+ $new_user->disable('new_user');
system_message(sprintf(elgg_echo("registerok"),$CONFIG->sitename));