Skip to content

Commit 2b0c09f

Browse files
committed
few change
1 parent 86268ad commit 2b0c09f

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

src/Config/Auth.php

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,6 @@ class Auth extends BaseConfig
127127
'tokens',
128128
];
129129

130-
/**
131-
* --------------------------------------------------------------------
132-
* Login validation rules
133-
* --------------------------------------------------------------------
134-
* Returns the rules that should be used for user login validation.
135-
*/
136-
public array $loginRules = [
137-
'email' => 'required|valid_email|max_length[254]',
138-
'password' => 'required',
139-
];
140-
141130
/**
142131
* --------------------------------------------------------------------
143132
* Allow Registration
@@ -234,6 +223,18 @@ class Auth extends BaseConfig
234223
'username',
235224
];
236225

226+
/**
227+
* --------------------------------------------------------------------
228+
* Login validation rules
229+
* --------------------------------------------------------------------
230+
* Returns the rules that should be used for user login validation.
231+
*/
232+
public array $loginRules = [
233+
// 'username' => 'required|max_length[30]|alpha_numeric_space|min_length[3]',
234+
'email' => 'required|valid_email|max_length[254]',
235+
'password' => 'required',
236+
];
237+
237238
/**
238239
* --------------------------------------------------------------------
239240
* Additional Fields for "Nothing Personal"

src/Controllers/LoginController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public function loginAction(): RedirectResponse
5454

5555
/**
5656
* Logs the current user out.
57-
*
58-
* @return RedirectResponse
5957
*/
6058
public function logoutAction(): RedirectResponse
6159
{

0 commit comments

Comments
 (0)