Silverstripe Version: Silverstripe 5
Question: How can I reset my forgotten admin password
I have lost the admin password for my Silverstripe 5 installation and try to recover access.
Setting the environment SS_DEFAULT_ADMIN_USERNAME and SS_DEFAULT_ADMIN_PASSWORD variables in .env doesn’t work.
Adding:
use SilverStripe\Security\Security;
Security::setDefaultAdmin('admin','password');
doesn’t work as there is no setDefaultAdmin method anymore.
Maybe there is some documentation for this use case I didn’t find.