#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1020407867', 'name' => 'account/password/forgotten-password.txt.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n"; $stash->set('expiration_ts', $stash->get('token_ts') + ($stash->get('max_token_age') * 86400)); $output .= "\nFrom: bugzilla-admin-daemon\nTo: "; $output .= $stash->get('emailaddress'); $output .= "\nSubject: Bugzilla Change Password Request\n\nYou (or someone impersonating you) has requested to change your Bugzilla\npassword. To change your password, visit the following link:\n\n"; $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "token.cgi?a=cfmpw&t="; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('token'); &$filter($output); }; $output .= "\n\nIf you are not the person who made this request, or you wish to cancel\nthis request, visit the following link:\n\n"; $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "token.cgi?a=cxlpw&t="; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('token'); &$filter($output); }; $output .= "\n\nIf you do nothing, the request will lapse after "; $output .= $stash->get('max_token_age'); $output .= " days \n("; $output .= $stash->get(['time2str', [ '%H:%M on the %o of %B, %Y', $stash->get('expiration_ts') ]]); $output .= ") or when you log in successfully.\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { }, });