Skip to content

Commit

Permalink
Changed to allow dashes in validator
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfall authored May 22, 2020
1 parent 711318c commit 2acbbde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App/Http/Controllers/UsersManagementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 2acbbde

Please sign in to comment.