forked from cobbler/cobbler
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit for form-based login and authentication
- Loading branch information
Showing
6 changed files
with
194 additions
and
154 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>{% block title %}Cobbler Web Interface{% endblock %}</title> | ||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | ||
<script src="/cobbler_webui_content/cobbler.js" type="text/javascript"></script> | ||
<link rel="stylesheet" type="text/css" media="all" href="/cobbler_webui_content/style.css" /> | ||
</head> | ||
<body> | ||
<div> | ||
<a href="/cobbler_web/"><img alt="Cobbler Logo" width="185" src="/cobbler_webui_content/logo-cobbler.png"/></a> | ||
</div> | ||
<div id="login"> | ||
{% if form.errors %} | ||
<p class="error">Sorry, that's not a valid username or password</p> | ||
{% endif %} | ||
<form action="/cobbler_web/do_login" method="post"> | ||
<fieldset> | ||
{% if next %}<input type="hidden" name="next" value="{{ next|escape }}" />{% endif %} | ||
<div id="username"> | ||
<label for="username">Username: </label> | ||
<input type="text" name="username" value="" id="username"> | ||
</div> | ||
<div id="password"> | ||
<label for="password">Password: </label> | ||
<input type="password" name="password" value="" id="password"> | ||
</div> | ||
<div id="button"> | ||
<input type="submit" value="login" /> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
</body> | ||
</html> |
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
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
Oops, something went wrong.