LoginHandler : Custom error ?

Author Message

H-Works Agency

Friday 15 July 2011 10:54:17 am

Hello,

Inside a loginHandler how is it possible to return a custom error code ?

For now the only process i know is to "return false" which lead to default access refused but how can i diversify refusal ?

 

Like :

return 6 => Access deny : This account doesn't exists

return 4 => Access deny : Your account exists but you don't have the right to go there....

....

EZP is Great

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 05:00:35
Script start
Timing: Jan 18 2025 05:00:35
Module start 'layout'
Timing: Jan 18 2025 05:00:35
Module start 'content'
Timing: Jan 18 2025 05:00:36
Module end 'content'
Timing: Jan 18 2025 05:00:36
Script end

Main resources:

Total runtime0.9820 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 595.3828152.6250
Module start 'layout' 0.00510.0031 748.007839.4531
Module start 'content' 0.00820.9723 787.4609460.7422
Module end 'content' 0.98050.0015 1,248.20318.1641
Script end 0.9820  1,256.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3356160.0002
Check MTime0.00130.1360160.0001
Mysql Total
Database connection0.00070.070810.0007
Mysqli_queries0.931194.8132460.0202
Looping result0.00070.0734440.0000
Template Total0.935895.320.4679
Template load0.00300.307620.0015
Template processing0.932894.986720.4664
Template load and register function0.00010.011910.0001
states
state_id_array0.00100.104910.0010
state_identifier_array0.00090.089320.0004
Override
Cache load0.00260.2628120.0002
Sytem overhead
Fetch class attribute can translate value0.00060.056510.0006
Fetch class attribute name0.00080.082020.0004
XML
Image XML parsing0.00050.050210.0005
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00440.4473170.0003
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0004 secs