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.

eZ debug

Timing: Jan 19 2025 04:22:14
Script start
Timing: Jan 19 2025 04:22:14
Module start 'layout'
Timing: Jan 19 2025 04:22:14
Module start 'content'
Timing: Jan 19 2025 04:22:15
Module end 'content'
Timing: Jan 19 2025 04:22:15
Script end

Main resources:

Total runtime1.3633 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1797152.6250
Module start 'layout' 0.00590.0030 741.804739.4453
Module start 'content' 0.00891.3528 781.2500532.3984
Module end 'content' 1.36170.0016 1,313.648412.4688
Script end 1.3633  1,326.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2924160.0002
Check MTime0.00150.1121160.0001
Mysql Total
Database connection0.00100.072810.0010
Mysqli_queries1.310896.1488570.0230
Looping result0.00060.0427550.0000
Template Total1.326797.320.6633
Template load0.00280.205720.0014
Template processing1.323897.103120.6619
Template load and register function0.00020.012010.0002
states
state_id_array0.00240.172710.0024
state_identifier_array0.00180.128620.0009
Override
Cache load0.00240.1765190.0001
Sytem overhead
Fetch class attribute can translate value0.00100.071720.0005
Fetch class attribute name0.00160.119640.0004
XML
Image XML parsing0.00270.197120.0013
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00280.2045160.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs