[Solved]Call to a member function hashPassword() on null


(pawan kumar) #1

I am trying to manually create the user as i have some check-in application,using below code

$identifier = ‘andi’;
$password = ‘secret@12334’;
$roles = array(‘Neos.Neos:Administrator’);
$authenticationProviderName = ‘DefaultProvider’;
$data=$userManager -> createAccountWithPassword($identifier, $password, $roles, $authenticationProviderName);

Giving below error.

Call to a member function hashPassword() on null


(Soren Malling) #2

How did you solve it? I’ll urge you to not just mark a topic as solved without the actual solution.

If you post your solution here, others (one of your co-workers, perhaps) with the same questions as you, will find a solution easier and faster. That benefits the whole community :cool: