Update jQuery from 1.12.4 to 3.7.1
[phorkie.git] / www / user.php
index 8f305da7ab38c4d321aa02cf9482c30c257e5a25..364981ca7491fdd8e6ebd29b637d705da28b1f2b 100644 (file)
@@ -3,14 +3,10 @@
  * Edit user information
  */
 namespace phorkie;
+$reqWritePermissions = true;
 require_once 'www-header.php';
-
-if (isset($_POST['name'])) {
-    $_SESSION['name'] = substr(filter_var($_POST['name'], FILTER_SANITIZE_STRING), 0, 35);
-}
-
-if (isset($_POST['email'])) {
-    $_SESSION['email'] = substr(filter_var($_POST['email'], FILTER_SANITIZE_EMAIL), 0, 35);
+if (!isset($_SESSION['identity'])) {
+    require 'forbidden.php';
 }
 
 render(