Bring users to login page w/ email pre-filled?


(Esty Thomas) #1

My company is running a Discourse instance for our customers. We want to add a link to our main application that will bring users to a page where they can log in to our Discourse, with the email address they use in our system pre-filled. If they do not have an account, we want to bring them to a page where they can register for our Discourse, with the email address and possibly other information pre-filled.

I’ve searched in the Meta and looked at the API docs, and I do not see a straightforward way to do this. (Also, apologies; I am not sure what the best category for this question is.)

Is this possible and can this be done reasonably, or will it ultimately be a better use of our time to just implement Single Sign On? We don’t yet have email validation set up in our application, but we are currently developing it.


(Rafael dos Santos Silva) #2

I think SSO it’s the best way here.


(Esty Thomas) #3

Thank you for the quick reply! I will see what management thinks.

I am concerned that the fact that we don’t have email validation in our application yet will be an issue; we would prefer not to wait for that feature to be completed before opening the Discourse to our customers.


(Neil Lalonde) #4

These url’s might do what you want:

http://discourse.example.com/signup?email=new.here@asdf.com
http://discourse.example.com/login?email=im.back@asdf.com
http://discourse.example.com/password-reset?email=i.forgot@asdf.com


(Esty Thomas) #5

So they do! Thank you!