Forums / Setup & design / insert change password link

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!