Skip to content
Snippets Groups Projects
Commit 437ffb6e authored by Dicky Adrian's avatar Dicky Adrian
Browse files

handled confirmation and password doesn't match

parent 637fd608
No related merge requests found
Pipeline #7735 canceled with stage
......@@ -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">&times;</button>
<strong>Invalid</strong> password and confirmation don\'t match.
</div>';
return view('auth.register');
} else {
$user = $this->create($data);
$role = $data['role'];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment