mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
Create cookie-based login and authentication system
This commit is contained in:
parent
45221365b5
commit
0bc3dc3830
46 changed files with 528 additions and 195 deletions
5
lib/Exceptions/InvalidFileException.php
Normal file
5
lib/Exceptions/InvalidFileException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidFileException extends SeException{
|
||||
}
|
6
lib/Exceptions/InvalidPermissionsException.php
Normal file
6
lib/Exceptions/InvalidPermissionsException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidPermissionsException extends SeException{
|
||||
protected $message = 'You don’t have permission to perform that action.';
|
||||
}
|
5
lib/Exceptions/InvalidSessionException.php
Normal file
5
lib/Exceptions/InvalidSessionException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidSessionException extends SeException{
|
||||
}
|
5
lib/Exceptions/LoginRequiredException.php
Normal file
5
lib/Exceptions/LoginRequiredException.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class LoginRequiredException extends SeException{
|
||||
}
|
|
@ -2,5 +2,10 @@
|
|||
namespace Exceptions;
|
||||
|
||||
class PollVoteExistsException extends SeException{
|
||||
public $Vote = null;
|
||||
protected $message = 'You’ve already voted in this poll.';
|
||||
|
||||
public function __construct(?\PollVote $vote = null){
|
||||
$this->Vote = $vote;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue