Forums / Install & configuration / User with unvalidated account

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

eZ debug

Timing: Jan 18 2025 04:56:35
Script start
Timing: Jan 18 2025 04:56:35
Module start 'content'
Timing: Jan 18 2025 04:56:36
Module end 'content'
Timing: Jan 18 2025 04:56:36
Script end

Main resources:

Total runtime1.2645 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.8281180.8281
Module start 'content' 0.00791.0188 768.6563609.6094
Module end 'content' 1.02670.2378 1,378.2656337.3828
Script end 1.2644  1,715.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.3681210.0002
Check MTime0.00190.1486210.0001
Mysql Total
Database connection0.00120.097010.0012
Mysqli_queries1.163091.97512020.0058
Looping result0.00270.21202000.0000
Template Total1.233497.520.6167
Template load0.00200.161020.0010
Template processing1.231497.378020.6157
Template load and register function0.00020.018010.0002
states
state_id_array0.00080.063310.0008
state_identifier_array0.00100.077220.0005
Override
Cache load0.00180.1410380.0000
Sytem overhead
Fetch class attribute can translate value0.00120.093040.0003
Fetch class attribute name0.00130.099670.0002
XML
Image XML parsing0.00340.267140.0008
class_abstraction
Instantiating content class attribute0.00000.001490.0000
General
dbfile0.01471.1639320.0005
String conversion0.00000.002730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs