Forums / Developer / Disable register user in login
Christian Lundvang
Monday 08 September 2003 7:14:16 am
Hi.
How do I disable registration of new user in the login-template?
--Christian--
-- Best Regards Christian Lundvang http://www.nxc.no
Tony Wood
Monday 08 September 2003 7:28:13 am
The way we used to do it in 3.1 is below. I just tested in 3.2b2 and looks to work ok. However there may be a better way in 3.2, I had hoped for this to be an ini setting with other things like tipafriend set...
Does anyone know a cleaner way of doing this?
=== disable user registercomment out:
$ViewList["register"] = array( "script" => "register.php", "params" => array( ), "default_navigation_part" => 'ezmynavigationpart', 'single_post_actions' => array( 'PublishButton' => 'Publish', 'CancelButton' => 'Cancel' ) );from kernel/user/module.php
Tony Wood : twitter.com/tonywood Vision with Technology Experts in eZ Publish consulting & development Power to the Editor! Free eZ Training : http://www.VisionWT.com/training eZ Future Podcast : http://www.VisionWT.com/eZ-Future
Monday 08 September 2003 7:34:12 am
Thanks.
In login.tpl: {*<input class="button" type="submit" name="RegisterButton" value="{'Sign Up'|i18n('design/standard/user','Button')}" />*}
Paul Borgermans
Monday 08 September 2003 7:36:18 am
It is really simple!
Put this in your site.ini.append(.php)
[SiteAccessRules] Rules[]=Access;disableRules[]=Module;user/register
You cab specify entire modules or just some functions within a module
-paul
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans
Monday 08 September 2003 9:14:36 am
Thanks Paul... I knew there would be a better way :)