Advice for auth systems? |
@Gianluigi no problem. I haven't tried pulling it out of Sprint to use in a plain CodeIgniter app before, but the steps should be something like the following. NOTE: You must have Composer working with the application. Also has a PHP 5.4+ requirement.
1. Copy the config/auth.php file from Sprint's code to your own. 2. Decide where you want to store the files. For this example, we'll store them under the third_party folder. 3. Edit the composer.json file to setup autoloading for the Myth namespace. Code: "autoload": { 4. Copy Sprint's myth/Auth folder into your third_party folder. 5. at the CLI do "composer dump-autoload" just to make sure it can find it 6.In your controller, use the Myth\Auth\AuthTrait to add the convenience methods to your controller. Oh - and I think this requires the Events package, also, so make sure to copy myth/Events folder into your third_party folder, and the events config file. Migrations for the required tables are in the repo You can also look at the Auth module for login, registration, forgot password implementation, etc. |
Messages In This Thread |
Advice for auth systems? - by Gianluigi - 05-29-2015, 10:41 AM
RE: Advice for auth systems? - by roopunk - 05-31-2015, 12:49 PM
RE: Advice for auth systems? - by Diederik - 05-31-2015, 04:19 PM
RE: Advice for auth systems? - by kilishan - 05-31-2015, 09:55 PM
RE: Advice for auth systems? - by Gianluigi - 06-04-2015, 04:03 AM
RE: Advice for auth systems? - by kilishan - 06-04-2015, 08:15 PM
RE: Advice for auth systems? - by Gianluigi - 01-14-2016, 03:58 AM
|