protected function passwordUpdate() { // ladowanie klasy i uzytkownika $user = new ClassUser(ClassTools::getValue('id_user')); // sprawdza czy klasa zostala poprawnie zaladowana if (!$user->load_class) { $this->alerts['danger'] = $user->errors; return; } // komunikaty if (!$user->passwordUpdate(ClassTools::getValue('form_new_password'), ClassTools::getValue('form_new_password_repeat'))) { $this->alerts['danger'] = $user->errors; return; } // komunikat $this->alerts['success'] = "Poprawnie zmieniono hasło: <b>{$user->name} {$user->surname}</b>"; // czyszczeie zmiennych wyswietlania $this->tpl_values = array(); $_POST = array(); return; }