aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-31 12:18:16 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-31 12:18:16 +0000
commita0a6ed1d1bcececefbff00158f9fa6ad0790ed16 (patch)
tree733bcafc1020348e0143bf766d757f2203d05e12 /mod
parente484463d7c1ab37fd024c7ae8ce5ecf3c47041d7 (diff)
downloadelgg-a0a6ed1d1bcececefbff00158f9fa6ad0790ed16.tar.gz
elgg-a0a6ed1d1bcececefbff00158f9fa6ad0790ed16.tar.bz2
Closes #896: Error thrown if user not validate. Metadata physically removed rather than simply blanked when validation is requested.
Note: update_metadata no longer seems to support anonymous metadata which is likely to have knock on issues elsewhere... git-svn-id: https://code.elgg.org/elgg/trunk@3184 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/uservalidationbyemail/start.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php
index deadc0afb..a990843d6 100644
--- a/mod/uservalidationbyemail/start.php
+++ b/mod/uservalidationbyemail/start.php
@@ -89,11 +89,10 @@
{
$user = get_entity($user_guid);
- $valid = ($code == uservalidationbyemail_generate_code($user_guid, $user->email));
- if ($valid)
- set_user_validation_status($user_guid, true, 'email');
+ if ($code == uservalidationbyemail_generate_code($user_guid, $user->email))
+ return set_user_validation_status($user_guid, true, 'email');
- return $valid;
+ return false;
}
// Initialise