Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
5067_Labs/Requests/RequestsTrainer/templates/cookieChallenge.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
54 lines (38 sloc)
1.03 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% block navTabs %} | |
{% include "helpers/sessionNav.html" %} | |
{% endblock navTabs %} | |
{% block content %} | |
<h1>Cookie Challenge</h1> | |
<div class="section"> | |
<h3>Challenge</h3> | |
<p>Set the Session Cookies to become Admin</p> | |
</div> | |
<div class="section"> | |
<h2>Login Form</h2> | |
<form method="POST"> | |
<div class="row"> | |
<div class="input-field col s12"> | |
<input id="user" name="user" type="text"> | |
<label for="user">User Name</label> | |
</div> | |
</div> | |
<button class="btn waves-effect waves-light" type="submit" name="action">Submit</button> | |
</form> | |
</div> | |
{% if uName %} | |
<div class="section"> | |
<div class="card blue-grey darken-1"> | |
<div class="card-content white-text"> | |
<span class="card-title">Result</span> | |
<p>Loggged in as <strong>{{ uName }}</strong></p> | |
{% if admin == "True" %} | |
<a href="{{ url_for('cookieCheck') }}">Get Flag</a> | |
{% else %} | |
<p>Not Admin</p> | |
{% endif %} | |
</div> | |
</div> | |
</div> | |
{% endif %} | |
{% endblock content %} |