How to disable users registration?

Author Message

Philip K.

Friday 07 September 2007 3:48:23 am

Hello,

I want to disable users registration.
Is there any ini-setting? I couldn't find anything...

Need some help.

Thanks,
Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

Philip K.

Friday 07 September 2007 3:57:23 am

OK, I found it:

Put this in override/site.ini.append.php

[SiteAccessRules]
Rules[]
Rules[]=access;enable
Rules[]=moduleall
Rules[]=access;disable
Rules[]=module;user/register

Linux is like a wigwam; no windows, now gates, and apache inside!

Vidar Langseid

Friday 07 September 2007 5:22:54 am

In site.ini we have:

PolicyOmitList[]
PolicyOmitList[]=user/login
PolicyOmitList[]=user/logout
PolicyOmitList[]=user/register
PolicyOmitList[]=user/activate
PolicyOmitList[]=user/success
PolicyOmitList[]=user/forgotpassword
PolicyOmitList[]=layout
PolicyOmitList[]=manual
PolicyOmitList[]=ezinfo
PolicyOmitList[]=paypal/notify_url

Removing user/register from PolicyOmitList[] would also do the trick, but only for 3.8.9, 3.9.3 and later. In older releases, registration would still work if user/register is removed from PolicyOmitList[]. Your proposal should work in any releases

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.