CMS MADE SIMPLE FORGE

Frontend Users

 

[#3357] Pretty url link in lost password email is not realy pretty

avatar
Created By: Piotras Cimmperman (vilkis)
Date Submitted: Fri Apr 24 21:49:26 -0400 2009

Assigned To:
Version: 1.6.4
CMSMS Version: None
Severity: Trivial
Resolution: Won't Fix
State: Closed
Summary:
Pretty url link in lost password email is not realy pretty
Detailed Description:
The link in lost password email is not pretty:
a text of link is in prettyurl form, but href of link isn't.

My suggestion:

in file action.do_forgotpw.php to replace line 

$this->smarty->assign('data_link',
			  $this->CreateLink($id,'verifycode',$pid,$link,$parms)); 

with this
$this->smarty->assign('data_link',
$this->CreateLink($id,'verifycode',$pid,$link,$parms, '', true,
$parms['inline'], '', false, $prettyurl));

and in file FrontEndUsers.module.php the line

$this->RegisterRoute('/[fF]eu\/verify\/(?P<returnid>[0-9]+)\/(?P<uid>[0-9]+)\/(?P<code>.*?)$/',
			 array('action'=>'verifycode'));

should be corrected to 

$this->RegisterRoute('/[fF]eu\/verify\/(?P<returnid>[0-9]+)\/(?P<uid>[0-9]+)\/(?P<input_code>.*?)$/',
			 array('action'=>'verifycode'));



Vilkis



History

Updates

Updated: 2012-11-28 13:01
resolution_id: => 8
cmsms_version_id: => -1
state: Open => Closed