Add initial templates for user login and blog post entry.
This commit is contained in:
parent
b91bcda71f
commit
3a90da4af9
2 changed files with 38 additions and 0 deletions
13
lib/_users/login.tpl
Normal file
13
lib/_users/login.tpl
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue