Skip to content

Commit

Permalink
update validation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Dec 11, 2021
1 parent 68919bb commit 039ad7a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ class LoginProxyPasswordGrantRequest extends Request
public function rules(): array
{
$rules = [
'password' => 'required|min:3|max:30',
// we don't need to require email here. The proper login attribute (with proper validations)
// will be added automatically by "loginAttributeValidationRulesMerger" method below
// 'email' => 'required',
'password' => 'required',
];

return loginAttributeValidationRulesMerger($rules);
Expand Down

0 comments on commit 039ad7a

Please sign in to comment.