Fix Jira FLEXIAPI-129 Validate the password confirmation when creating a new...

This commit is contained in:
Timothée Jaussoin 2023-11-07 16:24:49 +00:00
parent b6b54802d2
commit 06e92a6f93

View file

@ -81,6 +81,10 @@ class AccountController extends Controller
public function store(CreateAccountRequest $request)
{
$request->validate([
'password' => 'confirmed'
]);
$account = new Account;
$account->username = $request->get('username');
$account->email = $request->get('email');