Closed PhantomWatson closed 3 years ago
@PhantomWatson The doc is wrong please try:
$identifiers = Configure::read('Auth.Identifiers');
$identifiers['Password']['fields']['username'] = 'email';
Configure::write('Auth.Identifiers', $identifiers);
That indeed solves the problem. Thanks!
I suppose this issue should stay open until the documentation is updated.
Yes. Thank you for reporting.
Fixed documentation, thank you!
Users plugin version: 9.0.3 CakePHP version: 4.1.4
The docs say to add the following code after loading the plugin in order to use the user's email address as their username:
Adding this code results in the following error for me:
On a whim, I tried adding
$identifiers['Authentication.Password']['className'] = 'Authentication.Password';
, and that resulted in the following error:Application.php