Change path to registration form in an attempt to prevent spammers

(DBOINCP-187)
This commit is contained in:
Tristan Olive 2015-01-26 23:18:17 -05:00
parent 4f35fcab60
commit 25cb588984
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,19 @@
<?php
include_once('spam_controls.features.inc');
function spam_controls_menu() {
$items['user/register']['page access'] = FALSE;
$items['user/registration'] = array(
'title' => 'Create new account',
'page callback' => 'drupal_get_form',
'page arguments' => array('user_register'),
'access callback' => 'user_register_access',
'type' => MENU_LOCAL_TASK,
'file' => 'user.pages.inc',
'file path' => drupal_get_path('module', 'user'),
);
return $items;
}

View File

@ -1036,7 +1036,7 @@ function join_page($type = null) {
Project.') . '</p>';
$output .= '<p>' . t('If you\'re running a command-line or pre-5.0 version
of BOINC, !create_an_account first.', array('!create_an_account' =>
l(t('create an account'), 'user/register'))) . '</p>';
l(t('create an account'), 'user/registration'))) . '</p>';
break;
case 'new':
default: