X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/6c1705bd7fc4faa3db056d503afee041083ad754..6212e202d229f2301931f72cea4370d4e931ed1d:/login/edit.inc.php diff --git a/login/edit.inc.php b/login/edit.inc.php index 86b35b2..f2bd27b 100644 --- a/login/edit.inc.php +++ b/login/edit.inc.php @@ -2,10 +2,12 @@ $cols = [ 'username' => [ 'label' => 'login', - 'value' => $user['name'], + 'value' => $user->login, 'target' => NULL, - 'pattern' => "[a-z0-9-]+", - 'size' => 10, + 'attr' => [ + 'pattern' => "[a-z0-9-]+", + 'size' => 10, + ], ], 'name' => [ 'label' => 'volledige naam', @@ -24,16 +26,20 @@ $cols = [ 'avatar' => [ 'label' => 'portretfoto', 'type' => 'file', + 'attr' => [ + 'accept' => "image/jpeg", + ], 'filename' => 'avatar.jpg', ], 'tags' => [ 'label' => 'groepen', 'filename' => 'profile/.tags', 'values' => [], + 'visible' => 'admin', ], ]; -if (isset($user['pass'])) { +if (isset($user->pass)) { $cols['newpass'] = [ 'label' => 'wachtwoord', 'input' => <<<'EOT'