Commit b5fab9ee authored by Ad Schellevis's avatar Ad Schellevis

(captiveportal, new) work in progress, login template

parent 5c1c7b94
......@@ -13,10 +13,10 @@
<title></title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/signin.css" rel="stylesheet">
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/signin.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-1.11.2.min.js"></script>
<script>
$( document ).ready(function() {
/**
......@@ -29,7 +29,7 @@
// try to login
$.ajax({
type: "POST",
url: "https://10.211.55.100/api/captiveportal/access/logon/0/",
url: "/api/captiveportal/access/logon",
dataType:"json",
data:{ user: $("#inputUsername").val(), password: $("#inputPassword").val() }
}).done(function(data) {
......@@ -77,6 +77,6 @@
</main>
<!-- bootstrap script -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment