Creating a user - 'guarded' passwordCreated 5 years ago by kiltedup
I recently upgraded a site that had some functionality that created users. All was fine until ....
Just spotted since upgrading that the created users get no password.
I guess thats down to password field being defined as 'guarded' where before it has 'hidden' in user model.
Anyway - whats the "correct" way to add user using UsersRepositoryInterface and Create?
I got it working by doing
$users->unguard() before doing
Is that the right thing to do or should be some other way?