How to disable user account

Author Message

ondra ilcik

Tuesday 23 August 2005 1:24:27 pm

Hi there,

is it possible to disable an user account?

In ezuser_settings I've found column named "is_enabled". I set it to "0" for a testing user, which caused he was not able to login - so it seems this is what I'm looking for. But I don't know how to set it through the admin. interface.

Thanks in advance!

Kristof Coomans

Wednesday 24 August 2005 6:00:48 am

You can go to user/setting/(userid) to disable/enable a user. Replace (userid) with the id of your user, this is the same as it's contentobject_id.

In the standard view template for the datatype ezuser there's a link to this page (at least in eZ publish 3.6, don't know for older versions).

So in the admin interface of eZ publish 3.6, you can just go to the full view of your user, and click on the link "Configure user account settings" in the preview window.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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

Main resources:

Total runtime0.6141 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.0234152.6250
Module start 'layout' 0.00550.0026 741.648439.4453
Module start 'content' 0.00810.6045 781.0938520.3516
Module end 'content' 0.61250.0015 1,301.44538.1641
Script end 0.6141  1,309.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5552160.0002
Check MTime0.00140.2208160.0001
Mysql Total
Database connection0.00090.141910.0009
Mysqli_queries0.571493.0409540.0106
Looping result0.00050.0827520.0000
Template Total0.584495.220.2922
Template load0.00230.367420.0011
Template processing0.582194.794420.2911
Template load and register function0.00020.026410.0002
states
state_id_array0.00070.118510.0007
state_identifier_array0.00090.141520.0004
Override
Cache load0.00190.3043120.0002
Sytem overhead
Fetch class attribute can translate value0.00050.085620.0003
Fetch class attribute name0.00120.201830.0004
XML
Image XML parsing0.00060.097220.0003
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00090.1415160.0001
String conversion0.00000.001340.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs