shithub: werc

Download patch

ref: cb93d332a620be03a4c84423fe579661ca257b7a
parent: f0a9a6d6b08b946867ab99d72ec52c87ded4ba7b
author: uriel <[email protected]>
date: Wed Oct 22 05:20:50 EDT 2008

Minor improvements to user login template to use new user auth api

--- a/lib/_users/login.tpl
+++ b/lib/_users/login.tpl
@@ -1,6 +1,6 @@
 %{
-get_user
-if(! ~ $#logged_user 0)
+
+if(check_user)
     echo 'You are logged in as' $logged_user
 if not if (~ $REQUEST_METHOD POST)
     echo 'Login failed!'