insert change password link

Author Message

ttkt ttkt

Sunday 30 October 2005 8:27:29 pm

hi all,

i would like to insert a "change password" link in our website so that users can update them.

how do i go about it?

Łukasz Serwatka

Sunday 30 October 2005 11:14:02 pm

Before you will add link in your template, make sure that users has correct permissions to change their passwords. Go to User accounts->Roles and policies edit user role and add new policy:

Module: user
Function: password
Limitations: No limitations

Then add in your template:

{def $user=fetch( user, current_user )}
<a href={concat( '/user/password/', $user.contentobject.id, '/')|ezurl}>Change password</a>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

ttkt ttkt

Sunday 30 October 2005 11:35:52 pm

thanks, it works!

ttkt ttkt

Monday 31 October 2005 12:02:50 am

another question, how do i override the templates for /user/password.tpl? where do i copy the codes from and paste it to create an override?

i would like to change the layout of the "change password" page. thanks.

Łukasz Serwatka

Monday 31 October 2005 12:56:09 am

You will have to find this template on the complete template list, usually on the second page ;)

/user/password.tpl

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

ttkt ttkt

Wednesday 02 November 2005 1:04:35 am

yup, /user/password.tpl is there. but there is no override inside. can anyone guide me on where to copy the codes and create them? thanks.

Łukasz Serwatka

Wednesday 02 November 2005 1:12:12 am

From dropdown list choose your siteaccess name (usually public) and click set button, then create new override file. You can choose "Create as copy of default tpl ..." and edit original code in your new template. That's all, /user/password.tpl will be overrided now by your new tpl.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

ttkt ttkt

Wednesday 02 November 2005 1:20:00 am

thanks, it works!

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 06:19:38
Script start
Timing: Jan 31 2025 06:19:38
Module start 'layout'
Timing: Jan 31 2025 06:19:38
Module start 'content'
Timing: Jan 31 2025 06:19:38
Module end 'content'
Timing: Jan 31 2025 06:19:38
Script end

Main resources:

Total runtime0.0210 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1328151.2109
Module start 'layout' 0.00540.0030 739.343836.6484
Module start 'content' 0.00840.0107 775.992298.2656
Module end 'content' 0.01910.0018 874.257837.9922
Script end 0.0210  912.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002612.2888140.0002
Check MTime0.00136.3162140.0001
Mysql Total
Database connection0.00115.298110.0011
Mysqli_queries0.002913.681130.0010
Looping result0.00000.062410.0000
Template Total0.00146.610.0014
Template load0.00115.439810.0011
Template processing0.00021.168910.0002
Override
Cache load0.00083.985210.0008
General
dbfile0.004521.281880.0006
String conversion0.00000.039740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs