Forums / Developer / Custom login handler: how things work?

Custom login handler: how things work?

Author Message

Marin Orlic

Thursday 15 December 2005 10:55:32 am

Hi all,

I'm working on a custom login handler, so please have patience with me and consider this an open thread for all my rants :)

So to start - why is login handler called multiple times for login?

- it is called with NULL login and email when the login form is displayed
- when user fills in the required data login handler is called twice again:
- with NULL login and email
- again with the correct data

Kristof Coomans

Friday 16 December 2005 1:04:29 am

Some time ago, I've reported the calls with NULL login and email as a bug: http://ez.no/bugs/view/7461.

Some information on how to make your own login handler can be found in the old documentation: http://ez.no/products/ez_publish_cms/documentation/configuration/configuration/login_handler/how_to_make_your_own_handler

You can also take a look at some login handlers in community/contributions/hacks, like http://ez.no/community/contribs/hacks/cookie_user and http://ez.no/community/contribs/hacks/super_user.

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

eZ debug

Timing: Jan 18 2025 16:05:42
Script start
Timing: Jan 18 2025 16:05:42
Module start 'content'
Timing: Jan 18 2025 16:05:42
Module end 'content'
Timing: Jan 18 2025 16:05:42
Script end

Main resources:

Total runtime0.9072 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.8672180.8281
Module start 'content' 0.00790.8933 769.6953527.3359
Module end 'content' 0.90120.0059 1,297.031342.2578
Script end 0.9071  1,339.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3315140.0002
Check MTime0.00130.1422140.0001
Mysql Total
Database connection0.00130.141910.0013
Mysqli_queries0.866695.5267550.0158
Looping result0.00050.0589530.0000
Template Total0.875996.620.4379
Template load0.00210.236920.0011
Template processing0.873796.315520.4369
Template load and register function0.00020.022910.0002
states
state_id_array0.00130.141510.0013
state_identifier_array0.00150.163420.0007
Override
Cache load0.00180.2015150.0001
Sytem overhead
Fetch class attribute can translate value0.00070.077120.0003
Fetch class attribute name0.00200.225130.0007
XML
Image XML parsing0.00070.076420.0003
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00310.3387180.0002
String conversion0.00000.000730.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs