Skip to content

Commit

Permalink
Make login page
Browse files Browse the repository at this point in the history
  • Loading branch information
Luud Janssen committed Jun 8, 2016
1 parent fe52785 commit 4586457
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions templates/login.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php $this->layout('sections/base', $this->data) ?>

<form class="form-group center-block" action="login.php" method="post">
<fieldset>
<label for="user">Username</label>
<input class="form-control" type="text" size="20" name="username">
<label for="pass">Password</label>
<input class="form-control" type="password" AUTOCOMPLETE="off"
size="20" name="password">
<input class="submit btn btn-block btn-success" type="submit" value="Login" name="Login">
</fieldset>

<small>Pssshhtt. The login credentials are <em>admin</em> - <em>password</em>.</small>

<?= $this->data['tokenField'] ?>

</form>
2 changes: 1 addition & 1 deletion templates/sections/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="navbar-header">
<a class="navbar-brand" href="/">
<!--<img src="<?= $this->data['templateRoot'] ?>../default/images/logo.png" alt="Damn Vulnerable Web Application">-->
GOTO COMPETITION
GOTO - HACK ME
</a>
</div>
<?= $this->insert('sections/menu', $this->data) ?>
Expand Down

0 comments on commit 4586457

Please sign in to comment.