Avoid hashing passwords 2 times with using createWithRoles method, which calls the create() method.

parent cc0fbc31
......@@ -70,7 +70,6 @@ class SentinelUserRepository implements UserRepository
*/
public function createWithRoles($data, $roles, $activated = false)
{
$this->hashPassword($data);
$user = $this->create((array) $data, $activated);
if (!empty($roles)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment