Skip to content

A simple authentication library for CodeIgniter 4.

Notifications You must be signed in to change notification settings

lerofulero/codeigniter4-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

A simple authentication library for CodeIgniter 4.

Features:

  • registration
  • email activation
  • login/logout
  • forgotten password
  • account settings (with proper email and password change options)
  • CSRF protection
  • localization

Install

Download the package and place the Auth folder in app/ThirdParty/.

Open 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 $fromEmail and $fromName as well! I suggest you to use mailtrap.io for local development.

Enable CSRF in app/Config/Filters.

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 -all

Visit /register on your local server to begin.

About

A simple authentication library for CodeIgniter 4.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages