How to set minimum length of user passwords??

Author Message

Massimiliano Bariola

Tuesday 13 December 2005 10:32:03 am

Hi,

due to privacy laws, I need to be able to configure eZ publish so that the minimum length of user passwords will be 8 characters.

Unfortunately, I cannot find any configuration setting which will do that. any help?

Paul Forsyth

Tuesday 13 December 2005 10:40:33 am

There is no setting.

But you could easily modify:

kernel/classes/datatypes/ezuser/ezusertype.php

to do this.

In that file this line is present:

if ( strlen( $password ) < 3 )

so you should be able to change the '3' to be an ini setting instead.

Paul

Massimiliano Bariola

Tuesday 13 December 2005 11:07:39 am

Hi Paul,

I found I need to change it also in ezuser.php and kernel/user/password.php .

I also submitted an enhancement suggestion for future versions, so as not to hack the kernel.

thanks!

Paul Forsyth

Tuesday 13 December 2005 11:46:53 am

Yes, i see it in those places now. I also agree this enhancement should be in the kernel.

Its not only a useful feature but having 'strlen ($password < 3)' in three locations in the code shouldnt happen.

Paul

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 09:43:10
Script start
Timing: Jan 19 2025 09:43:10
Module start 'layout'
Timing: Jan 19 2025 09:43:10
Module start 'content'
Timing: Jan 19 2025 09:43:11
Module end 'content'
Timing: Jan 19 2025 09:43:11
Script end

Main resources:

Total runtime0.7866 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 589.4063152.6563
Module start 'layout' 0.00800.0039 742.062539.5078
Module start 'content' 0.01200.7728 781.5703512.1172
Module end 'content' 0.78480.0017 1,293.687512.1094
Script end 0.7865  1,305.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4918160.0002
Check MTime0.00160.2062160.0001
Mysql Total
Database connection0.00080.105410.0008
Mysqli_queries0.723391.9563600.0121
Looping result0.00070.0905580.0000
Template Total0.722591.920.3612
Template load0.00270.338920.0013
Template processing0.719891.510420.3599
Template load and register function0.00010.014010.0001
states
state_id_array0.01181.494510.0118
state_identifier_array0.00260.332520.0013
Override
Cache load0.00230.2893260.0001
Sytem overhead
Fetch class attribute can translate value0.00050.067020.0003
Fetch class attribute name0.00130.169150.0003
XML
Image XML parsing0.00060.079220.0003
class_abstraction
Instantiating content class attribute0.00000.002160.0000
General
dbfile0.00500.6302170.0003
String conversion0.00000.001140.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs