From 2acbbdebaf9205b940ceedca23c6534ec5479665 Mon Sep 17 00:00:00 2001 From: Pete Simmons Date: Fri, 22 May 2020 17:35:28 +0100 Subject: [PATCH] Changed to allow dashes in validator --- src/App/Http/Controllers/UsersManagementController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Http/Controllers/UsersManagementController.php b/src/App/Http/Controllers/UsersManagementController.php index 211e13f..0e6bb2a 100755 --- a/src/App/Http/Controllers/UsersManagementController.php +++ b/src/App/Http/Controllers/UsersManagementController.php @@ -91,7 +91,7 @@ public function create() public function store(Request $request) { $rules = [ - 'name' => 'required|string|max:255|unique:users|alpha_num', + 'name' => 'required|string|max:255|unique:users|alpha_dash', 'email' => 'required|email|max:255|unique:users', 'password' => 'required|string|confirmed|min:6', 'password_confirmation' => 'required|string|same:password', @@ -200,7 +200,7 @@ public function update(Request $request, $id) ]; if ($emailCheck) { - $rules['email'] = 'required|email|max:255|unique:users|alpha_num'; + $rules['email'] = 'required|email|max:255|unique:users|alpha_dash'; } if ($passwordCheck) {