X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=blobdiff_plain;f=drupal-hacks%2Fdatabase.pgsql;h=15bcff20386bd5526d810c90a22b27f3980015ea;hp=d5f07dc7bae1529d596b041f792252d8258e8d8b;hb=79f4250a12bfabd69f35d5e999b49f32e660fdde;hpb=6f2ab21f241ddb3b338f211a0e4126c7dd89eea4 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";'); +