Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
MINOR: typo correction in alert messages of Account entity
Browse files Browse the repository at this point in the history
  • Loading branch information
hundrex committed Feb 16, 2018
1 parent b8af80b commit eb86018
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/AppBundle/Controller/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function deleteAction(Request $request, Account $account)

$session = $request->getSession();
$session->clear();
$session->getFlashBag()->add('success', 'Your account have been deleted.');
$session->getFlashBag()->add('success', 'Your account has been deleted.');

return $this->redirectToRoute('succubesarl');
}
Expand All @@ -162,13 +162,13 @@ private function handleGeneralInformationForm(Request $request, $editAccountGene
$session = $request->getSession();
if (!$editAccountGeneralInformationForm->isValid())
{
$session->getFlashBag()->add('danger', 'Your iinformation have not been updated, please retry.');
$session->getFlashBag()->add('danger', 'Your information has not been updated, please retry.');
}
else
{
$this->getDoctrine()->getManager()->flush();

$session->getFlashBag()->add('success', 'Your information have been updated.');
$session->getFlashBag()->add('success', 'Your information has been updated.');
}
}

Expand All @@ -177,7 +177,7 @@ private function handleChangePasswordForm(Request $request, Account $account, $e
$session = $request->getSession();
if (!$editAccountPasswordForm->isValid())
{
$session->getFlashBag()->add('danger', 'Your password have not been updated, please retry.');
$session->getFlashBag()->add('danger', 'Your password has not been updated, please retry.');
}
else
{
Expand All @@ -191,12 +191,12 @@ private function handleChangePasswordForm(Request $request, Account $account, $e
$account->setPassword($newPassword);
$this->getDoctrine()->getManager()->flush();

$session->getFlashBag()->add('success', 'Your password have been updated.');
$session->getFlashBag()->add('success', 'Your password has been updated.');
}
else
{
$editAccountPasswordForm->get('old-password')->addError(new FormError('Incorrect password.'));
$session->getFlashBag()->add('danger', 'Your password have not been updated, please retry.');
$session->getFlashBag()->add('danger', 'Your password has not been updated, please retry.');
}
}
}
Expand Down

0 comments on commit eb86018

Please sign in to comment.