function changeLogin() { $clients = new Clients(); $clients->setValues($_REQUEST); if ($clients->changeLogin()) { Common::jsonSuccess(""); } else { Common::jsonError("Error"); } }