$body .= "\n\n";
$body .= 'If it was you, and you want to confirm, use the URL below:';
$body .= "\n\n";
- $body .= "\t".common_local_url('confirmaddress',
+ $body .= "\t".common_local_url('recoverpassword',
array('code' => $confirm->code));
$body .= "\n\n";
$body .= 'If not, just ignore this message.';
common_show_header(_('Password recovery requested'));
common_element('p', NULL,
_t('Instructions for recovering your password ' .
- 'have been sent to the email registered to your ' .
+ 'have been sent to the email address registered to your ' .
'account.'));
common_show_footer();
}
RewriteRule ^main/unsubscribe$ index.php?action=unsubscribe [L,QSA]
RewriteRule ^main/confirmaddress$ index.php?action=confirmaddress [L,QSA]
RewriteRule ^main/confirmaddress/(.*)$ index.php?action=confirmaddress&code=$1 [L,QSA]
+RewriteRule ^main/recoverpassword$ index.php?action=recoverpassword [L,QSA]
+RewriteRule ^main/recoverpassword/(.*)$ index.php?action=recoverpassword&code=$1 [L,QSA]
RewriteRule ^settings/avatar$ index.php?action=avatar [L,QSA]
RewriteRule ^settings/password$ index.php?action=password [L,QSA]
return common_path('main/confirmaddress/'.$args['code']);
case 'userbyid':
return common_path('user/'.$args['id']);
+ case 'recoverpassword':
+ return common_path('main/recoverpassword' .
+ ($args['code']) ? ('/' . $args['code']) :
+ '');
default:
return common_simple_url($action, $args);
}