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

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

Main resources:

Total runtime0.6991 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.0077 587.9375152.6250
Module start 'layout' 0.00780.0031 740.562539.4453
Module start 'content' 0.01080.6868 780.0078522.2578
Module end 'content' 0.69760.0015 1,302.26568.3125
Script end 0.6991  1,310.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4554160.0002
Check MTime0.00130.1851160.0001
Mysql Total
Database connection0.00100.141610.0010
Mysqli_queries0.655993.8173540.0121
Looping result0.00040.0642520.0000
Template Total0.669695.820.3348
Template load0.00210.295420.0010
Template processing0.667595.479920.3338
Template load and register function0.00020.024710.0002
states
state_id_array0.00080.120110.0008
state_identifier_array0.00080.108020.0004
Override
Cache load0.00170.2409150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.086720.0003
Fetch class attribute name0.00080.121130.0003
XML
Image XML parsing0.00060.083920.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.1149160.0001
String conversion0.00000.001440.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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