• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Login/Logout/Session Integration

#1
I'd like to share users credentials and sessions with an existing Laravel App.

1) Is there a way to build a custom login/logout form, which could redirect back to my app? (perhaps a hidden "redirect_to" field)
I coudn't find any documentation or hint about this.

2) Is there a simple function which let me authenticate a user? (That I could call from a Laravel controller)
Ex.: authenticateByEmail('myemail@gmail.com')

Thanks in advance.
 

batpool52!

Well-known member
#2
1) Is there a way to build a custom login/logout form, which could redirect back to my app? (perhaps a hidden "redirect_to" field)
AFAIK You would need a custom add-on for that.

2) Is there a simple function which let me authenticate a user? (That I could call from a Laravel controller)
Ex.: authenticateByEmail('myemail@gmail.com')
Check login action under Pub\Login controller. It should have everything you're looking for.