user register and password

Author Message

Golvier Jean

Monday 21 June 2004 6:40:35 am

Hi everybody,

I tried user register process and discovered that if you let an empty string in "password" and "confirm password" inputs (user account), a new user is created in the database.

Is there any way to make new users enter a non-null string in the form ?

Thanks for help.

Jean

Simon Lynch

Tuesday 22 June 2004 4:16:12 am

Try

- using Javascript to validate an entry
- make the system generate a password for the user (see site.ini for the setting and change it in your site.ini.append file in /settings/overrides/

Tim Poole

Wednesday 07 July 2010 8:18:54 am

Add this to site.ini.append.php:

[UserSettings]
GeneratePasswordIfEmpty=false

eZ then requires the user to enter a password, rather than generating one behind the scenes.

(I appreciate this reply is 6 years late - but it might help someone!)

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 31 2025 01:20:16
Script start
Timing: Jan 31 2025 01:20:16
Module start 'layout'
Timing: Jan 31 2025 01:20:16
Module start 'content'
Timing: Jan 31 2025 01:20:16
Module end 'content'
Timing: Jan 31 2025 01:20:16
Script end

Main resources:

Total runtime0.0239 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1250151.2109
Module start 'layout' 0.00540.0038 739.3359220.6875
Module start 'content' 0.00920.0133 960.0234997.6484
Module end 'content' 0.02250.0014 1,957.671929.9922
Script end 0.0239  1,987.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.0152140.0002
Check MTime0.00114.5213140.0001
Mysql Total
Database connection0.00083.527010.0008
Mysqli_queries0.002510.468330.0008
Looping result0.00000.045810.0000
Template Total0.00104.210.0010
Template load0.00073.125410.0007
Template processing0.00021.032210.0002
Override
Cache load0.00051.926910.0005
General
dbfile0.00104.030180.0001
String conversion0.00000.032940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs