Reset password URL is /password-reset

(Allen - Watchman Monitoring) #1

I’m using @vindia’s script here:

To import users into a forum. They will all have to reset their password to get in and make changes.

Is there a URL I can send them to to reset this directly? Something like /my/password or /reset-password?


(Vincent Oord) #2

Not as far as I know. I just mailed them instructions to go to “Login” and then “Forgot password”, so Discourse will sent them the right password reset mail. It’s a bit clunky, I admit.

(Allen - Watchman Monitoring) #3

As I bulk-add these users, I’d love to be able to point them to the URL where they can reset their password (as opposed to manual words… “Go to the login page, click Login, click Reset password”

It’s more friendly in any set of written instructions about Discourse and its usage. Not high priority, but a nice touch, and I would expect not too hard to implement [for someone who has more skills than I].

(Jeff Atwood) #4

@neil didn’t we add a route for this to support existing customers with a bunch of migrated accounts that need to reset password to get in?

(Kane York) #5

I think issuing the password resets with an admin authorization (api_key + api_username=system) would work for bypassing the rate limits.

(Neil Lalonde) #6

Yes we did! The path is /password-reset. @watchmanmonitor You almost had it right. :smile:

Can we pass an email address to /password-reset?
(Allen - Watchman Monitoring) #7


I’m not able to make it work on my invite-only forums. I just get redirected to the login page.

I does work here on meta… updating this to “bug”

(cpradio) #8

Are you on latest?

As it works at Sitepoint. It does redirect back to /latest, but it brings up the Password Reset modal.

(Allen - Watchman Monitoring) #9

I tested it on my hosted “cider cooler” site before breaking out the B word :slight_smile:

and I just updated another site to latest, same lack of reset, on these closed forums, where registration is possible.

(Jeff Atwood) #10

So I guess it has to do with invite only. What is the exact repro?

(Allen - Watchman Monitoring) #11

Invite only = unchecked
login required = checked
must approve users = checked
enable local = checked
allow new users = checked

google, twitter, facebook logins all enabled, no SSO in place.

Going to forum/password-reset looks a bit jerky, as if the reset modal were displayed, but a user just gets the normal signup/login page.

I flagged this thread with the hosted URL you can repro on

(Neil Lalonde) #12

The /password-reset route was definitely broken when login required is enabled. I pushed a fix for that, and also fixed it always trying to go to the “latest” page.

(Allen - Watchman Monitoring) #13

confirmed working on the site where this came up. thanks for the fast fix!

PS does your like on a topic comment count for Senior Tester badge I’m working on? :wink:

(Régis Hanol) #14

Nope. That badge works only for topics (ie. post_number == 1).

(Jeff Atwood) #15