From: Barış Metin Date: Fri, 8 Jan 2010 10:35:22 +0000 (+0000) Subject: don't allow user registration by default. X-Git-Tag: PLEWWW-4.3-41~5 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=79f4250a12bfabd69f35d5e999b49f32e660fdde don't allow user registration by default. --- 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";'); +