I don’t expect that will work. requestReset stores the request in the ZODB, so it won’t be there in the other site when it tries to validate the token.
There’s a good reason it’s not possible to do this without a token. It would be a security problem if unauthenticated users could reset any user’s password by knowing only the username.
For ‘both sites’ I am able to generate a token and send an email, probably the same way Plone does. (by using api on the other site). The ‘problem’ is that I would prefer the ‘reset password link’ to include the username. Maybe this is unwise from a security perspective (if so, I will tell my customer).
What they want is:
Users are imported on site A from an Excel file (works now)
Users from A can be added to any project (which would be ‘Site B‘ or site C’ etc
Site A then connects to site B, and add a user with ‘the same info’.
User is sent an email (currently from site A since I use a template that can be edited there)
The user gets an email with ‘set your password’.
Now, the user needs to ‘type the userid’ to set the password (first time).
I would prefer that they dont have to type the password, especially if it is ‘unique ids’. (yes, I know they can copy/paste, but my customer sees it differently).
In other words: I now manage to generate the link and put it in the email ( https:/ /somesite .org/passwordreset/8771e1ed06f24a92a3572c5a8d3c192b?userid=name=longstringhere which works, but they have to ‘input’ longstringhere in the form