Skip to content

Commit fb71b7d

Browse files
committed
refactor: use findById() instead of find()
Can get correct type.
1 parent 5dcd870 commit fb71b7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/RegisterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function registerAction(): RedirectResponse
7171
}
7272

7373
// Get the updated user so we have the ID...
74-
$user = $users->find($users->getInsertID());
74+
$user = $users->findById($users->getInsertID());
7575

7676
// Store the email/password identity for this user.
7777
$user->createEmailIdentity($this->request->getPost(['email', 'password']));

0 commit comments

Comments
 (0)