File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function loginAction(): RedirectResponse
6464 protected function getValidationRules (): array
6565 {
6666 return setting ('Validation.login ' ) ?? [
67- //'username' => setting('Validation._username') ?? $this-> getUsernameRules(),
67+ //'username' => static:: getUsernameRules(),
6868 'email ' => static ::getEmailRules (),
6969 'password ' => 'required ' ,
7070 ];
Original file line number Diff line number Diff line change @@ -130,10 +130,8 @@ protected function getUserEntity(): User
130130 */
131131 protected function getValidationRules (): array
132132 {
133- $ usernameRules = setting ('Validation._username ' ) ?? LoginController::getUsernameRules ();
134-
135133 $ registrationUsernameRules = array_merge (
136- $ usernameRules ,
134+ LoginController:: getUsernameRules () ,
137135 ['is_unique[users.username] ' ]
138136 );
139137 $ registrationEmailRules = array_merge (
You can’t perform that action at this time.
0 commit comments