Skip to content

Commit

Permalink
fix: do not display registration form if registration is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hypeJunction committed Oct 15, 2015
1 parent 53ba565 commit 43bd1ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions views/default/resources/hybridauth/authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@
forward($forward_url);
} else {

if (!elgg_get_config('allow_registration')) {
register_error(elgg_echo('registerdisabled'));
forward('', '403');
}

$title = elgg_echo('hybridauth:register');
$content = elgg_view_form('hybridauth/register', array(), array(
'provider' => $provider->getName(),
Expand Down

0 comments on commit 43bd1ca

Please sign in to comment.