Skip to content
Snippets Groups Projects
Commit 0d7ca36c authored by Nicholas Wijaya's avatar Nicholas Wijaya
Browse files

fix confirm password error

parent 30f6c5cb
Branches
Pipeline #7827 canceled with stage
......@@ -109,6 +109,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 confirmation.
</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