-
Notifications
You must be signed in to change notification settings - Fork 4
Dev requirements
Edward Hibbert edited this page Feb 8, 2023
·
5 revisions
Authentication into the Repair Directory Admin section currently works via authing in to Restarters.net, first.
They share the same sessions table in the database, and make use of the same session cookie.
When working on this locally:
- make sure the cookie name and app key are the same in both the applications, via the following settings in .env for both apps:
APP_KEY
-
SESSION_DOMAIN
(no leading .) andSESSION_COOKIE
- ensure the user you want to log in as has a
repairdir_role
of 1, 2, or 3 - spin up local Restarters.net
php artisan serve --port 8000
- spin up Repair Directory
php artisan serve --port 8080
- log in to http://restarters.test:8000 - then you should be automatically authed when you visit http://map.restarters.test:8080/admin