Add some comments and replace get_post_args with load_post_args
This commit is contained in:
parent
ce23320a4d
commit
f87339e98b
5 changed files with 49 additions and 23 deletions
|
|
@ -1,13 +1,14 @@
|
|||
%{
|
||||
|
||||
if(check_user)
|
||||
echo 'You are logged in as' $logged_user
|
||||
if not if (~ $REQUEST_METHOD POST)
|
||||
echo 'Login failed!'
|
||||
|
||||
%}
|
||||
<h1>User login</h1>
|
||||
<br />
|
||||
% if(check_user) {
|
||||
You are logged in as: <b>%($logged_user%)</b>
|
||||
% }
|
||||
% 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