A simple authentication library for CodeIgniter 4.
Download the package and place the
Auth folder in
app/Config/Autoload.php and add to autoload like this:
$psr4 = [ 'Config' => APPPATH . 'Config', APP_NAMESPACE => APPPATH, 'App' => APPPATH, 'Auth' => APPPATH . 'ThirdParty/Auth', ];
Set up the email in
app/Config/Email. Fill the
$fromName as well! I suggest you to use mailtrap.io for local development.
Enable CSRF in
Make sure that your database is set in
.env file or in
app/Config/Database.php. Install the users table by running the following command in your project root:
php spark migrate
/register on your local server to begin.
is_not_uniquevalidation rule where possible