Welcome Guest, Not a member yet? Register   Sign In
One-stop Auth package for CodeIgniter 4
#5

(This post was last modified: 10-26-2019, 03:59 AM by InsiteFX.)

PHP Code:
// the folder name needs to be Myth\Auth
'Myth\Auth' => ROOTPATH 'Myth\Auth',       // Module Auth 

All of this is in the readme.md

Configuration

Once installed you need to let your CodeIgniter 4 application know where to find the libraries.
In your application, perform the following setup:

1) Edit app/Config/Autoload.php and add the Myth\Auth namespace to the $psr4 array.

2) Edit app/Config/Routes.php and set discoverLocal to true.

3) Edit app/Config/Email.php and verify that a fromName and fromEmail are set as that is used when sending emails for password reset, etc.

4) Edit app/Config/Validation.php and add the following value to the ruleSets array: \Myth\Auth\Authentication\Passwords\ValidationRules::class

5) Ensure your database is setup correctly, then run the Auth migrations:

  php spark migrate:latest -all

As for the root that was for an old version it no longer exists.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: One-stop Auth package for CodeIgniter 4 - by InsiteFX - 10-26-2019, 03:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB