Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
error when admin attempting to set password on new user #3487
Attempt to set password pseudo-logged-in as new user failed with 'unknown error'
Steps to reproduce
PHP version 7.1.20
This was happening because the impersonated user account didn’t have a password yet, and Craft was expecting you to enter their password at this prompt.
If Craft knows you are impersonating another user, it should probably be asking for the original user’s password here, not the impersonated user’s password.
Thanks -- and yes, as you'll recognize, there's a Catch-22 if it isn't the original user's password, because the new guy you're impersonating doesn't actually have a password yet....
I went back and verified that I'd tried this, in the usual permutative programming ways ;)