Connection and discourse account creation without going on discourse

Hello
I’m building a website with a discourse forum. I would like to make sure that users can connect to discourse from the site’s login page and also create an account if they don’t have one. Is it possible to do this without having to redirect the user to discourse? I use PHP.
Thanks for your help

Hey @loukmane226 ,

Take a look at Discourse Connect:

2 Likes

Hey @Stephen
Thanks for your response. I see it’s the solution, but I don’t understand how to use.

Can you help me with pratic example?
This is what I need to do :

  1. User will go on my website “mysite.com
  2. By clicking on link for access to users area, a script will verify in session if user is connected. If connected he will have access to users area. If not, a login form will be displayed and he will enter email address and password.
  3. These informations will be used to verify if user is registered on my discourse. If yes discourse will return user informations
  4. If user not registered on discourse, he will be able to enter informations for registration.

This is what I would like to do, but I don’t know where start. Can you help me please?

Thank you