lib/TWiki/LoginManager/TemplateLogin.pm
changeset 1 e2915a7cbdfa
parent 0 414e01d06fd5
child 2 7bc60a767fa4
equal deleted inserted replaced
0:414e01d06fd5 1:e2915a7cbdfa
   183     }
   183     }
   184 
   184 
   185     # TODO: add JavaScript password encryption in the template
   185     # TODO: add JavaScript password encryption in the template
   186     # to use a template)
   186     # to use a template)
   187     $origurl ||= '';
   187     $origurl ||= '';
   188     $twiki->{prefs}->pushPreferenceValues('SESSION', {ORIGURL=>$origurl, BANNER=>$banner, NOTE=>$note, ERROR=>$error});
   188     $twiki->{prefs}->pushPreferenceValues(
       
   189         'SESSION',
       
   190         {ORIGURL=>$origurl, BANNER=>$banner, NOTE=>$note, ERROR=>$error});
   189 
   191 
   190     $tmpl = $twiki->handleCommonTags( $tmpl, $web, $topic );
   192     $tmpl = $twiki->handleCommonTags( $tmpl, $web, $topic );
   191     $tmpl = $twiki->renderer->getRenderedVersion( $tmpl, '' );
   193     $tmpl = $twiki->renderer->getRenderedVersion( $tmpl, '' );
   192     $tmpl =~ s/<nop>//g;
   194     $tmpl =~ s/<nop>//g;
   193     print $twiki->generateHTTPHeaders( $query );
   195     $twiki->writeCompletePage($tmpl);
   194     print $tmpl;
       
   195 }
   196 }
   196 
   197 
   197 1;
   198 1;