Skip to content

Commit a2c36f1

Browse files
committed
refactor: we don't need to use getUserEntity()
1 parent 20ab4a5 commit a2c36f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Controllers/RegisterController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ public function registerAction(): RedirectResponse
103103

104104
// Save the user
105105
$allowedPostFields = array_keys($rules);
106-
$user = $this->getUserEntity();
107-
$user->fill($this->request->getPost($allowedPostFields));
106+
$user = $users->createNewUser($this->request->getPost($allowedPostFields));
108107

109108
// Workaround for email only registration/login
110109
if ($user->username === null) {
@@ -160,6 +159,8 @@ protected function getUserProvider(): UserModel
160159

161160
/**
162161
* Returns the Entity class that should be used
162+
*
163+
* @deprecated 1.2.0 No longer used.
163164
*/
164165
protected function getUserEntity(): User
165166
{

0 commit comments

Comments
 (0)