mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Log user in automatically if a request with HTTP auth is received
This commit is contained in:
parent
216e63f014
commit
c457af896c
6 changed files with 25 additions and 10 deletions
|
@ -3130,9 +3130,6 @@ ul.feed p{
|
|||
margin: 0 10px;
|
||||
}
|
||||
|
||||
|
||||
.ebooks-toolbar{
|
||||
}
|
||||
.ebooks-toolbar a.button{
|
||||
font-size: 0;
|
||||
gap: 0;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue