diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 88144807f12c23a28b1c57bfc9b4e6abec795c69..1531593aaccda6de47746236f96444764b49fc45 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -102,6 +102,12 @@ class RegisterController extends Controller <strong>Invalid</strong> phone number. </div>'; return view('auth.register'); + } else if ($data['password'] != $data['password_confirmation']) { + echo '<div class="alert alert-warning alert-dismissible fade show text-center"> + <button type="button" class="close" data-dismiss="alert">×</button> + <strong>Invalid</strong> password and confirmation don\'t match. + </div>'; + return view('auth.register'); } else { $user = $this->create($data); $role = $data['role'];