Hi
I have 2 application one with Modx and second is in Laravel with common modx database.
Now My client have requirement to login into Laravel application using modx username and password.
How can i make this possible ?
Arkalp.com
Does the Laravel app have an API to let you log users in code? If not, you might have to do it the other way around (see
this series of articles) or put a cURL function in a MODX plugin attached to OnWebAuthentication (I think) that manually logs the user into the Laravel app.
Hi BobRay,
Thanks for your reply but i think i need to explain more so you can give me some better solution.
I have modx application and database with 100 users.
Now i want to give some of my users a different application (buit with laravel) to login in to system and perform operation on different UI.
I need to use same database so user will login in to new application with same username and passsword stored in modx database.
Now can you let me know how could i make it feasible with any example.
Arkalp.com
Sorry, I don't have more advice until you answer my question.
Does the Laravel app have an API to let you log users in code?
If you're building it from scratch, you may be able to use a MODX plugin attached to OnWebLogin (and/or OnManagerLogin), that checks the $loginContext variable. If the context is correct, you could call a Laravel procedure to log the user into the Laravel app.
There are several ways to do it described here, but I don't know enough about Laravel to recommend one:
https://laravel.com/docs/5.4/authentication