User Change password Redirect

Author Message

Tom W

Wednesday 13 October 2010 8:54:35 am

It seems the change password form(user/password/[user_id]) does not make use of RedirectIfDiscarded and RedirectURIAfterPublish. Does anyone know of a good non-javascript work around to redirect the user to a specific page upon cancel or submit new password?

Heath

Wednesday 13 October 2010 6:40:57 pm

Hello Tom,

You could simply create a copy of that module view into an extension, custom the module view to meet your custom redirection needs and use the custom module view in place of the default.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Tom W

Thursday 14 October 2010 9:02:09 am

Thank you Heath.

Though it didn't help much, it did got me to look into the kernel. (kernel/user/password.php)

To set a "redirect on cancel" for the user password update page, use hidden value "RedirectOnCancel".

As for a redirect on successful update...that's just a crazy client request, it makes more sense to stay on the same page so the user see the confirmation message for their submission.

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 02:07:39
Script start
Timing: Jan 18 2025 02:07:39
Module start 'layout'
Timing: Jan 18 2025 02:07:39
Module start 'content'
Timing: Jan 18 2025 02:07:40
Module end 'content'
Timing: Jan 18 2025 02:07:40
Script end

Main resources:

Total runtime0.6721 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9063152.6250
Module start 'layout' 0.00510.0027 740.531339.4531
Module start 'content' 0.00780.6629 779.9844529.1641
Module end 'content' 0.67070.0014 1,309.148412.3203
Script end 0.6721  1,321.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4700160.0002
Check MTime0.00140.2020160.0001
Mysql Total
Database connection0.00070.101610.0007
Mysqli_queries0.628993.5741570.0110
Looping result0.00050.0712550.0000
Template Total0.645796.120.3228
Template load0.00190.279120.0009
Template processing0.643895.783420.3219
Template load and register function0.00020.024910.0002
states
state_id_array0.00080.118310.0008
state_identifier_array0.00080.114020.0004
Override
Cache load0.00160.2347150.0001
Sytem overhead
Fetch class attribute can translate value0.00090.130820.0004
Fetch class attribute name0.00110.157640.0003
XML
Image XML parsing0.00070.098720.0003
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00090.1317170.0001
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
3content/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/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: 5

Time used to render debug report: 0.0001 secs