From 79f4250a12bfabd69f35d5e999b49f32e660fdde Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Fri, 8 Jan 2010 10:35:22 +0000 Subject: [PATCH] don't allow user registration by default. --- drupal-hacks/database.pgsql | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drupal-hacks/database.pgsql b/drupal-hacks/database.pgsql index d5f07dc..15bcff2 100644 --- a/drupal-hacks/database.pgsql +++ b/drupal-hacks/database.pgsql @@ -9,3 +9,15 @@ INSERT INTO users(uid,name,mail) VALUES(1,'drupal',''); -- PlanetLab: Replace default user login block with PlanetLab login block update blocks set module='planetlab' where module='user' and delta='0'; + + +-- Disallow anonymous users to register +-- +-- an already populated database may have the variable 'user_register' +-- set. In that case you can update the value and clear the cache. +-- +-- update variable set value='s:1:"0";' where name='user_register'; +-- delete from cache; +-- +insert into variable (name, value) values ('user_register', 's:1:"0";'); + -- 2.43.0