We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ab4a5 commit a2c36f1Copy full SHA for a2c36f1
src/Controllers/RegisterController.php
@@ -103,8 +103,7 @@ public function registerAction(): RedirectResponse
103
104
// Save the user
105
$allowedPostFields = array_keys($rules);
106
- $user = $this->getUserEntity();
107
- $user->fill($this->request->getPost($allowedPostFields));
+ $user = $users->createNewUser($this->request->getPost($allowedPostFields));
108
109
// Workaround for email only registration/login
110
if ($user->username === null) {
@@ -160,6 +159,8 @@ protected function getUserProvider(): UserModel
160
159
161
/**
162
* Returns the Entity class that should be used
+ *
163
+ * @deprecated 1.2.0 No longer used.
164
*/
165
protected function getUserEntity(): User
166
{
0 commit comments