mirror of https://github.com/BOINC/boinc.git
Change path to registration form in an attempt to prevent spammers
(DBOINCP-187)
This commit is contained in:
parent
4f35fcab60
commit
25cb588984
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue