We are working on a page with Silverstripe and changed the login. Users can now login with a username instead of the email address. To make this possible, we added "Member::set_unique_identifier_field('Username');" to the _config.php.
Now we want to change the way a user can reset their password if they forget it. We want to make it possible to use the username instead of the email-address to get an email with the link to reset their password.
To this end, we have tried several things in the /mysite/_config.php, but it doesn't seem to work.
1. Object::add_extension('Security', 'UsernameSecurity');
3. Director::addRules(11, array(
'Security//$Action/$ID/$OtherID' => 'UsernameSecurity',
Does anyone have any suggestions to get this to work better? Thank you in advance for your help!