diff --git a/Web/Presenters/AdminPresenter.php b/Web/Presenters/AdminPresenter.php index 0bc857e6..d9d8a800 100644 --- a/Web/Presenters/AdminPresenter.php +++ b/Web/Presenters/AdminPresenter.php @@ -56,6 +56,13 @@ final class AdminPresenter extends OpenVKPresenter switch($_POST["act"] ?? "info") { default: case "info": + $user->setFirst_Name($this->postParam("first_name")); + $user->setLast_Name($this->postParam("last_name")); + $user->setPseudo($this->postParam("nickname")); + $user->setStatus($this->postParam("status")); + $user->setVerified(empty($this->postParam("verify") ? 0 : 1)); + if($user->onlineStatus() != $this->postParam("online")) $user->setOnline(intval($this->postParam("online"))); + $user->save(); break; diff --git a/Web/Presenters/templates/Admin/User.xml b/Web/Presenters/templates/Admin/User.xml index 7d2a47e9..508505b1 100644 --- a/Web/Presenters/templates/Admin/User.xml +++ b/Web/Presenters/templates/Admin/User.xml @@ -10,23 +10,7 @@ {block content}