Browse Source

fix validation on email

pull/260/head
Kode 6 years ago
parent
commit
e095589172
  1. 4
      app/Http/Controllers/UserController.php

4
app/Http/Controllers/UserController.php

@ -54,7 +54,7 @@ class UserController extends Controller
{ {
$validatedData = $request->validate([ $validatedData = $request->validate([
'name' => 'required|max:255', 'name' => 'required|max:255',
'email' => 'required|email', 'email' => 'required|email|unique:users',
'password' => 'nullable|confirmed', 'password' => 'nullable|confirmed',
'password_confirmation' => 'nullable' 'password_confirmation' => 'nullable'
@ -120,7 +120,7 @@ class UserController extends Controller
{ {
$validatedData = $request->validate([ $validatedData = $request->validate([
'name' => 'required|max:255', 'name' => 'required|max:255',
'email' => 'required|email', 'email' => 'required|email|unique:users',
'password' => 'nullable|confirmed', 'password' => 'nullable|confirmed',
'password_confirmation' => 'nullable' 'password_confirmation' => 'nullable'
]); ]);

Loading…
Cancel
Save