I am experimenting with Nette 2.1.0 sandbox, trying to follow the quick
guide using Wampserver 2.2.
Authentication does not work for me :( .
After editing config.neon according to the info of https://doc.nette.org/…thentication, i get instead the initial blog page an error:
Service 'user': Multiple services of type Nette\Security\IAuthenticator found: nette.authenticator, 24_Model_UserManager
I haven't seen anybody else with this error so what am i doing wrong ?
- Member | 2118
You have your users and passwords defined in config.neon ⇒ Nette will
create an instance of SimpleAuthenticator. The problem is that you have your own
\Model\UserManager implements IAuthenticator and Nette can't
determine which authenticator you want to use.
Last edited by enumag (2014-01-16 20:36)
What should to do to make this work ?
When i take out the file /app/model/UserManager.php i get the error:
Class Model\UserManager used in service '24_Model_UserManager' has not been found or is not instantiable
and i can see this class of this file begins like:
class UserManager extends Nette\Object implements Nette\Security\IAuthenticator
This file is part of the sandbox and i didn't create a class of my own for
In fact just adding the lines for security confguration in config.neon gives me the initial error.