aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
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