Add initial templates for user login and blog post entry.

This commit is contained in:
Uriel 2008-10-18 03:40:30 +02:00
parent b91bcda71f
commit 3a90da4af9
2 changed files with 38 additions and 0 deletions

13
lib/_users/login.tpl Normal file
View file

@ -0,0 +1,13 @@
%{
get_user
if(! ~ $#logged_user 0)
echo 'You are logged in as' $logged_user
if not if (~ $REQUEST_METHOD POST)
echo 'Login failed!'
%}
<form method="POST">
User name: <input type="text" name="user_name" /><br />
User password: <input type="password" name="user_password" /><br />
<input name="s" type="submit" value="Login" />
</form>