Using the TextFile Login Handler

Author Message

Patti McCreary

Thursday 29 January 2004 12:04:37 pm

My site has one section that users need to login to view. I have set up the Roles so the "Access denied" (error/kernel/1.tpl) shows for only this section. I want to use the textfile login handler to login these users.

Couple of questions:
- Should I be overriding the error/kernel/1.tpl and user/login.tpl templates to display the correct login screen for this section? Or should I redirect the Access Error in error.ini to user/login? How do I override user/login?

- I added LoginHandler=textfile setting to site.ini, a sample textfile and settings in the textfile.ini file. The section seems to be using the textfile handler (ie I had the permissions off on the file and after correcting, it alleviated the errors). But its not validating the user.

- On the output page I get the following:
Welcome to eZ publish administration

To log in enter a valid login and password.
Could not login

* A valid username and password is required to login.

But the site is not using my custom pagelayout, ie its probably using the user pageloayout.

I realize that this is a lot of questons, hoping someone can help out.
Thanks very much in advance,
Patti McCreary

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 19:20:12
Script start
Timing: Jan 18 2025 19:20:12
Module start 'layout'
Timing: Jan 18 2025 19:20:12
Module start 'content'
Timing: Jan 18 2025 19:20:13
Module end 'content'
Timing: Jan 18 2025 19:20:13
Script end

Main resources:

Total runtime0.7210 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.0057 589.0703152.6250
Module start 'layout' 0.00570.0033 741.695339.4453
Module start 'content' 0.00890.7106 781.1406406.6563
Module end 'content' 0.71960.0013 1,187.79698.1563
Script end 0.7209  1,195.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5875160.0003
Check MTime0.00210.2946160.0001
Mysql Total
Database connection0.00070.091110.0007
Mysqli_queries0.673893.4647460.0146
Looping result0.00050.0713440.0000
Template Total0.682094.620.3410
Template load0.00220.300220.0011
Template processing0.679894.288120.3399
Template load and register function0.00050.076210.0005
states
state_id_array0.00080.117410.0008
state_identifier_array0.00320.438020.0016
Override
Cache load0.00190.2683180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.088510.0006
Fetch class attribute name0.00250.342310.0025
XML
Image XML parsing0.00010.019410.0001
class_abstraction
Instantiating content class attribute0.00000.000910.0000
General
dbfile0.00060.0840100.0001
String conversion0.00000.001540.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs