pre-approval of new users

Author Message

Giovanni Gigante

Tuesday 29 March 2005 6:51:18 am

Hello,
Is it possible to have registration of new users approved by the admin? (or an editor)
That is: a new user ask for registration but until the editor approves it, the new user gets no access to the site (or parts of it).
Maybe using a workflow? I have searched the documentation and forums but found nothing...

Thanks
Giovanni Gigante

Olivier Pierret

Tuesday 29 March 2005 12:10:02 pm

Hi Giovanni

I actually did this by using workflow (as you guessed).Since users are content object you can trigger an approval workflow before publish.

It gets a bit tricky when dealing with validation emails since these emails are sent to the user which validate its account in turn but in the mean time your administrator has not yet approved the new user.

You might end up with a situation where the user believe that he can connect onto the site though he actually can't because he is not (yet) approved.

To work around this I changed the text of the sent email to explain the user that he must me approved before geting access to the site. I also used a module(*) to send an email to the user when he is approved.

Hope this helps - If you (or anyone else !) find a better way to achieve this, please let me know.

rgds

Olivier Pierret

(*) Mailinglist (Workflow Event) in contribs/workflow section

Mindshare Interactive Campaigns

Wednesday 22 June 2005 7:08:32 am

Hello. When I apply a pre-publish Approve/Event workflow trigger to the "Users" section, I would expect that this means that new registrations would need to be approved by my Admin user. However, the workflow trigger never fires. New users can register without going through workflow at all.

I actually did this by using workflow (as you guessed).Since users are content object you can trigger an approval workflow before publish.

Can you please explain how you got this working?

Thank you.

http://www.mindshare.net

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 07:36:50
Script start
Timing: Jan 31 2025 07:36:50
Module start 'layout'
Timing: Jan 31 2025 07:36:50
Module start 'content'
Timing: Jan 31 2025 07:36:51
Module end 'content'
Timing: Jan 31 2025 07:36:51
Script end

Main resources:

Total runtime1.0475 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.1328151.2109
Module start 'layout' 0.00560.0027 739.343836.6484
Module start 'content' 0.00841.0381 775.9922928.1016
Module end 'content' 1.04650.0010 1,704.093811.8516
Script end 1.0475  1,715.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2930160.0002
Check MTime0.00120.1141160.0001
Mysql Total
Database connection0.00070.065610.0007
Mysqli_queries1.000095.4665590.0169
Looping result0.00050.0454570.0000
Template Total1.014096.820.5070
Template load0.00220.206620.0011
Template processing1.011896.590220.5059
Template load and register function0.00140.131610.0014
states
state_id_array0.00200.191210.0020
state_identifier_array0.00070.067920.0004
Override
Cache load0.00180.1677240.0001
Sytem overhead
Fetch class attribute can translate value0.00040.041130.0001
Fetch class attribute name0.00160.154830.0005
XML
Image XML parsing0.00030.032430.0001
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00250.2360100.0002
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs