Skip to content

Commit

Permalink
Merge pull request #53 from theMiddleBlue/v2.3/master
Browse files Browse the repository at this point in the history
fix login page
  • Loading branch information
theMiddleBlue authored Dec 17, 2018
2 parents b594678 + eb7bf64 commit c00de74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/nmapreport/nmap_auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
{% block content %}
<div class="container" style="margin-top:100px;">
<div class="row">
<div class="col s4 offset-s4">
<div class="col s12 m4 offset-m4">
<div class="card wmcard">
<div class="card-content">
<span class="card-title">Token</span>
<input type="password" id="token" /><br><br>
<span style="font-size:12px;">Generate a new token with:<br><code>docker exec -ti webmap /root/token</code></span><br><br>
<button class="btn blue" onclick="javascript:checkToken();">Login</button>
</div>
</div>
Expand All @@ -29,6 +30,8 @@
}).done(function(d) {
if(d['auth'] == 'ok') {
location.href='/';
} else {
swal("Error", "Invalid token", "error")
}
});
}
Expand Down

0 comments on commit c00de74

Please sign in to comment.