|
|
@@ -146,7 +146,7 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
*/
|
|
|
if(!$result)
|
|
|
{
|
|
|
- return (new HtmlDataJsonResponse())->setMessage($service->getError())->setStatusError();
|
|
|
+ return (new HtmlDataJsonResponse())->setMessageAndTranslate($service->getError())->setStatusError();
|
|
|
}
|
|
|
|
|
|
return (new HtmlDataJsonResponse())->setMessageAndTranslate('emailAccountHasBeenUpdated')->setStatusSuccess();
|
|
|
@@ -192,7 +192,7 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
|
|
|
if(!$result)
|
|
|
{
|
|
|
- return (new HtmlDataJsonResponse())->setMessage($service->getError())->setStatusError();
|
|
|
+ return (new HtmlDataJsonResponse())->setMessageAndTranslate($service->getError())->setStatusError();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -242,7 +242,7 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
|
|
|
if(!$result)
|
|
|
{
|
|
|
- return (new HtmlDataJsonResponse())->setMessage($service->getError())->setStatusError();
|
|
|
+ return (new HtmlDataJsonResponse())->setMessageAndTranslate($service->getError())->setStatusError();
|
|
|
}
|
|
|
|
|
|
return (new HtmlDataJsonResponse())->setMessageAndTranslate('passwordChangedSuccessfully')->setStatusSuccess();
|