1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| static public function addRouteForForgotPassword(sfEvent $event)
{
$r = $event->getSubject();
$r->prependRoute('sf_guard_forgot_password', new sfRoute('/guard/forgot_password', array('module' => 'sfGuardForgotPassword', 'action' => 'index')));
$r->prependRoute('sf_guard_forgot_password_change', new sfDoctrineRoute('/guard/forgot_password/:unique_key', array(
'module' => 'sfGuardForgotPassword',
'action' => 'change'
), array(
'sf_method' => array('get', 'post')
), array(
'model' => 'sfGuardForgotPassword',
'type' => 'object'
)));
} |