]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/ForgotPasswordController.php
Merge pull request #3728 from BookStackApp/php_formatting
[bookstack] / app / Http / Controllers / Auth / ForgotPasswordController.php
index 8eaee08a2b49985dbcfc299681f7be0577d48b7a..b345fad1c1f6570bdc4c1db58435dd13881d6873 100644 (file)
@@ -20,7 +20,6 @@ class ForgotPasswordController extends Controller
     | your application to your users. Feel free to explore this trait.
     |
     */
-
     use SendsPasswordResetEmails;
 
     /**
@@ -43,7 +42,9 @@ class ForgotPasswordController extends Controller
      */
     public function sendResetLinkEmail(Request $request)
     {
-        $this->validate($request, ['email' => 'required|email']);
+        $this->validate($request, [
+            'email' => ['required', 'email'],
+        ]);
 
         // We will send the password reset link to this user. Once we have attempted
         // to send the link, we will examine the response then see the message we