Skip to content

Commit a513aaa

Browse files
webmaketaylorotwell
authored andcommitted
Update AuthenticatesUsers.php (#18746)
Additional checking for non string properties
1 parent 18013cc commit a513aaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Foundation/Auth/AuthenticatesUsers.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public function login(Request $request)
5959
protected function validateLogin(Request $request)
6060
{
6161
$this->validate($request, [
62-
$this->username() => 'required', 'password' => 'required',
62+
$this->username() => 'required|string',
63+
'password' => 'required|string',
6364
]);
6465
}
6566

0 commit comments

Comments
 (0)