Skip to content

Commit

Permalink
Require password for all graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
203lir committed Oct 2, 2020
1 parent 7e089a8 commit 9eb0eff
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ function getinterval()
<!-- ./col -->
</div>

<?php
// If the user is logged in, then we show the more detailed index page.
// Even if we would include them here anyhow, there would be nothing to
// show since the API will respect the privacy of the user if he defines
// a password
if($auth){ ?>

<div class="row">
<div class="col-md-12">
<div class="box" id="queries-over-time">
Expand All @@ -101,12 +108,6 @@ function getinterval()
</div>
</div>
</div>
<?php
// If the user is logged in, then we show the more detailed index page.
// Even if we would include them here anyhow, there would be nothing to
// show since the API will respect the privacy of the user if he defines
// a password
if($auth){ ?>

<div class="row">
<div class="col-md-12">
Expand Down

0 comments on commit 9eb0eff

Please sign in to comment.