Create cookie-based login and authentication system

This commit is contained in:
Alex Cabal 2022-07-10 18:58:55 -05:00
parent 45221365b5
commit 0bc3dc3830
46 changed files with 528 additions and 195 deletions

View file

@ -0,0 +1,5 @@
<?
namespace Exceptions;
class InvalidFileException extends SeException{
}

View file

@ -0,0 +1,6 @@
<?
namespace Exceptions;
class InvalidPermissionsException extends SeException{
protected $message = 'You dont have permission to perform that action.';
}

View file

@ -0,0 +1,5 @@
<?
namespace Exceptions;
class InvalidSessionException extends SeException{
}

View file

@ -0,0 +1,5 @@
<?
namespace Exceptions;
class LoginRequiredException extends SeException{
}

View file

@ -2,5 +2,10 @@
namespace Exceptions;
class PollVoteExistsException extends SeException{
public $Vote = null;
protected $message = 'Youve already voted in this poll.';
public function __construct(?\PollVote $vote = null){
$this->Vote = $vote;
}
}