aboutsummaryrefslogtreecommitdiffstats
path: root/admin/user
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-19 01:37:36 +0200
committerThomas Lange <code@nerdmind.de>2021-06-19 01:37:36 +0200
commitbe49d1f366da155737d05a17f73cf1c3d246c67e (patch)
treec6301914d6d356163faaf5ae853f0bfecfea7939 /admin/user
parent84455052b4f2aa90f12e83a60acd896301512357 (diff)
downloadblog-be49d1f366da155737d05a17f73cf1c3d246c67e.tar.gz
blog-be49d1f366da155737d05a17f73cf1c3d246c67e.tar.xz
blog-be49d1f366da155737d05a17f73cf1c3d246c67e.zip
Remove ID form field (and rearrange other fields)
This commit removes the ID form field, enlarges the title form field and rearranges the other form fields in the grid layout.
Diffstat (limited to 'admin/user')
-rw-r--r--admin/user/insert.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/admin/user/insert.php b/admin/user/insert.php
index 9a84fa9..acb49ad 100644
--- a/admin/user/insert.php
+++ b/admin/user/insert.php
@@ -12,8 +12,7 @@ require '../../core/application.php';
$Attribute = new User\Attribute();
-if(HTTP::issetPOST('id', 'slug', 'username', 'password', 'fullname', 'mailaddr', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
- $Attribute->set('id', HTTP::POST('id') ? HTTP::POST('id') : FALSE);
+if(HTTP::issetPOST('slug', 'username', 'password', 'fullname', 'mailaddr', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
$Attribute->set('slug', HTTP::POST('slug') ? HTTP::POST('slug') : generateSlug(HTTP::POST('username')));
$Attribute->set('username', HTTP::POST('username') ? HTTP::POST('username') : NULL);
$Attribute->set('password', HTTP::POST('password') ? password_hash(HTTP::POST('password'), PASSWORD_BCRYPT, ['cost' => 10]) : FALSE);