User with unvalidated account

Author Message

J-A Eberhard

Thursday 06 September 2007 1:22:19 pm

If a user register and you have selected the 'VerifyUserEmail' in the site.ini.append.php file, the account will remain as 'disabled' until the user click, in the email, on the link.
Fine, but how do I get away registration from users that never validate. ?
I thought that the account will be in draft mode and belong to the 'UserCreatorID' but it does not.
What's happen to them???
Thanks
Jacques-André

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Tony Wood

Thursday 06 September 2007 3:13:39 pm

Hi,

I think this will help you.

-If you go into admin in the Account section.
-Select the User object.
-Click on Configure user account settings
-Set it to enabled

Job done user can now log in without clicking on th eemail link

Tony

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

J-A Eberhard

Friday 07 September 2007 3:02:32 am

Hi Tony,

My logic is different.
I want the user to validate their emails by clicking on the link but I want to know what's happen to the account created by users that don't click on it.

Such account remains in an 'disabled' state (which is fine), but over time, you can have a lot of such accounts.

I thought they will be 'disabled' and in draft mode, so I could clear them as object in draft mode or list them under the admin drafts. But they are object in a published state.

SO, is there a built in process in eZ that clean up unvalidated account or shoul I write a cron that delete all users with a status 'disabled' that are older than x days?

Thanks

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Vidar Langseid

Friday 07 September 2007 7:49:42 am

No,there is no built in process in eZ that clean up unvalidated account.
So a contribution which would do that could maybe be useful for others as well.

But please note that if an account is disabled doesn't necessary mean that it never has been validated/activated. It could also be that an administrator has disabled it afterwards for various reasons, and intended not to delete it.

J-A Eberhard

Monday 10 September 2007 12:30:40 am

I will write a cronjob in the coming week and publish it.

Thanks for the info.

Jacques-andré

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

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 18 2025 11:25:15
Script start
Timing: Jan 18 2025 11:25:15
Module start 'layout'
Timing: Jan 18 2025 11:25:15
Module start 'content'
Timing: Jan 18 2025 11:25:16
Module end 'content'
Timing: Jan 18 2025 11:25:16
Script end

Main resources:

Total runtime0.9171 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.1641152.6406
Module start 'layout' 0.00780.0034 741.804739.4766
Module start 'content' 0.01120.9044 781.2813604.5156
Module end 'content' 0.91570.0014 1,385.796916.1484
Script end 0.9171  1,401.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4534160.0003
Check MTime0.00230.2560160.0001
Mysql Total
Database connection0.00080.092610.0008
Mysqli_queries0.842691.8701650.0130
Looping result0.00080.0835630.0000
Template Total0.861593.920.4307
Template load0.00190.204820.0009
Template processing0.859693.728220.4298
Template load and register function0.00010.010710.0001
states
state_id_array0.00120.133210.0012
state_identifier_array0.00961.048920.0048
Override
Cache load0.00170.1817380.0000
Sytem overhead
Fetch class attribute can translate value0.00070.075030.0002
Fetch class attribute name0.00220.235470.0003
XML
Image XML parsing0.00280.301930.0009
class_abstraction
Instantiating content class attribute0.00000.002090.0000
General
dbfile0.00370.4033210.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs