10up / wp-scrubber

BETA: This plugin provides a command-line interface for scrubbing sensitive user and comment data from a WordPress installation.
GNU General Public License v2.0
16 stars 3 forks source link

A confirmation before scrubbing logged-in user's data. #15

Open ankitguptaindia opened 4 months ago

ankitguptaindia commented 4 months ago

Is your enhancement related to a problem? Please describe.

When executing 'wp scrub all' or 'wp scrub users', user data is scrubbed. If a user's email domain isn't '10up.com' or 'get10up.com', their details change, blocking access to login WordPress site.

A warning prompt should inform users of potential credential changes. Options 'Yes' or 'No' would allow users to proceed with or without changing their credentials.

Example:

This command will alter the username and password of the logged-in user. If you wish to proceed with this change, please type 'yes'.

Although administrators can exclude data using arguments like --allowed-domains and --allowed-emails, but terminal notifications or pre-alteration checks would enhance user experience.

https://github.com/10up/wp-scrubber/assets/6384299/44215d6c-d6b3-442f-a30e-2a911989a721

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct