]> BookStack Code Mirror - bookstack/blobdiff - app/Access/Controllers/RegisterController.php
whitespace only
[bookstack] / app / Access / Controllers / RegisterController.php
index 13b97f03c9632c6f280cf305e5064ef142d67ada..25b0a30366a97ef25bebfe10d2fc1c0babe857f7 100644 (file)
@@ -87,6 +87,7 @@ class RegisterController extends Controller
             'name'     => ['required', 'min:2', 'max:100'],
             'email'    => ['required', 'email', 'max:255', 'unique:users'],
             'password' => ['required', Password::default()],
+            'username' => ['prohibited'], // this is a honeypot for bots that must not be filled in
         ]);
     }
 }