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 9eaa72a commit e5382f8Copy full SHA for e5382f8
src/Controllers/RegisterController.php
@@ -76,12 +76,8 @@ public function registerAction(): RedirectResponse
76
}
77
78
// Save the user
79
- $allowedPostFields = array_merge(
80
- setting('Auth.validFields'),
81
- setting('Auth.personalFields'),
82
- ['password']
83
- );
84
- $user = $this->getUserEntity();
+ $allowedPostFields = array_keys($rules);
+ $user = $this->getUserEntity();
85
$user->fill($this->request->getPost($allowedPostFields));
86
87
// Workaround for email only registration/login
0 commit comments