]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed #4198 uservalidationbyemail respects the return value of the register,user...
authorhypeJunction <ismayil.khayredinov@hypejunction.com>
Mon, 12 Dec 2011 22:31:26 +0000 (23:31 +0100)
committercash <cash.costello@gmail.com>
Thu, 15 Dec 2011 01:44:09 +0000 (20:44 -0500)
mod/uservalidationbyemail/start.php

index 8de5d0522b2256a6d95a0906e9579ca03632b197..576e12247d231efe79835bd9350947d4e8381ea0 100644 (file)
@@ -69,6 +69,12 @@ function uservalidationbyemail_disable_new_user($hook, $type, $value, $params) {
                return;
        }
 
+       // another plugin is requesting that registration be terminated
+       // no need for uservalidationbyemail
+       if (!$value) {
+               return $value;
+       }
+
        // disable user to prevent showing up on the site
        // set context so our canEdit() override works
        elgg_push_context('uservalidationbyemail_new_user');