Provide a CLI script to set (reset to new) password for a user #13066
MurzNN
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I assume that it's a pretty popular situation when a developer just typed a random password when logging in to the local Payload CMS instance, and instantly forgets it ;)
Now Payload provides the ability to receive a reset link by email, but for this, the email adapter should be configured properly, which is a rare case for local setups. So, instead of the email, we see a warning:
So, simply say, a regular new user of the Payload CMS has no easy and convenient way to reset a user password.
To resolve this, would be great to provide a command-line script that allows setting a new password for a user.
As an alternative, we can provide a cli tool that generates a one-time login link to reset the password.
What do you think about this idea?
Beta Was this translation helpful? Give feedback.
All reactions