Can we pass an email address to /password-reset?

faq-material

(Jay Pfaffman) #1

Continuing the discussion from Reset password URL is /password-reset:

I’m working with someone moving over from Ning and am trying to minimize the pain of joining a new forum. I’m elated to find /password-reset, but it’d be even better if I could pass an email address to it.

What I want to do is send the “Trusted user, test the new site” email with a link to reset their password without them having to type it in (because they’ll do it wrong). I don’t want to just send them the new password links until they have read the informative email explaining what this new site and password are about.

It looks like that model is a POST, so it seems I can’t do what I want, but I’m hoping I’m wrong.


(Michael Downey) #2

This sounds like a great part of a workflow when migrating to Discourse from another system where accounts are created/imported, but no password yet set.

Even just passing an email address in the URI query string, and pre-populating the textfield if it exists, would be a nice touch.


(Neil Lalonde) #3

Available since v1.5:

/password-reset?email=hello@example.com


(Michael Downey) #4

Awesome, thank you for that update!