don't allow user registration by default.
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Fri, 8 Jan 2010 10:35:22 +0000 (10:35 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Fri, 8 Jan 2010 10:35:22 +0000 (10:35 +0000)
drupal-hacks/database.pgsql

index d5f07dc..15bcff2 100644 (file)
@@ -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";');
+