Update jQuery from 1.12.4 to 3.7.1
[phorkie.git] / www / user.php
index 5bb2352ad60323a458a1f640940c778bc345a722..364981ca7491fdd8e6ebd29b637d705da28b1f2b 100644 (file)
@@ -3,15 +3,10 @@
  * Edit user information
  */
 namespace phorkie;
-$pageRequiresLogin = '1';
+$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(