Log user in automatically if a request with HTTP auth is received

This commit is contained in:
Alex Cabal 2022-07-12 11:30:03 -05:00
parent 216e63f014
commit c457af896c
6 changed files with 25 additions and 10 deletions

View file

@ -3130,9 +3130,6 @@ ul.feed p{
margin: 0 10px;
}
.ebooks-toolbar{
}
.ebooks-toolbar a.button{
font-size: 0;
gap: 0;

View file

@ -30,7 +30,6 @@ catch(Exceptions\SeException $ex){
<? }else{ ?>
<p class="center-notice">Your vote in the <a href="<?= $vote->PollItem->Poll->Url ?>"><?= Formatter::ToPlainText($vote->PollItem->Poll->Name) ?> poll</a> was submitted on <?= $vote->Created->format('F j, Y g:i A') ?>.</p>
<? } ?>
<p class="button-row narrow"><a class="button" href="<?= $vote->PollItem->Poll->Url ?>/votes"> view results</a></p>
</section>
</main>

View file

@ -24,8 +24,6 @@ try{
$session->Create($email);
setcookie('sessionid', $session->SessionId, time() + 60 * 60 * 24 * 14 * 1, '/', SITE_DOMAIN, true, false); // Expires in two weeks
if($requestType == WEB){
http_response_code(303);
header('Location: ' . $redirect);