aboutsummaryrefslogtreecommitdiffstats
path: root/admin/user
diff options
context:
space:
mode:
Diffstat (limited to 'admin/user')
-rw-r--r--admin/user/insert.php2
-rw-r--r--admin/user/update.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/user/insert.php b/admin/user/insert.php
index 2d9e09f..48cbf65 100644
--- a/admin/user/insert.php
+++ b/admin/user/insert.php
@@ -23,7 +23,7 @@ $User = new ORM\Entities\User;
#===============================================================================
# Check for insert request
#===============================================================================
-if(HTTP::issetPOST('slug', 'username', 'password', 'fullname', 'mailaddr', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
+if(HTTP::issetPOST('insert')) {
$User->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('username')));
$User->set('username', HTTP::POST('username') ?: NULL);
$User->set('password', HTTP::POST('password') ? password_hash(HTTP::POST('password'), PASSWORD_BCRYPT, ['cost' => 10]) : FALSE);
diff --git a/admin/user/update.php b/admin/user/update.php
index bff21b3..78685d7 100644
--- a/admin/user/update.php
+++ b/admin/user/update.php
@@ -25,7 +25,7 @@ if(!$User = $UserRepository->find(HTTP::GET('id'))) {
#===============================================================================
# Check for update request
#===============================================================================
-if(HTTP::issetPOST('slug', 'username', 'password', 'fullname', 'mailaddr', 'body', 'argv', 'time_insert', 'time_update', 'update')) {
+if(HTTP::issetPOST('update')) {
$User->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('username')));
$User->set('username', HTTP::POST('username') ?: NULL);
$User->set('password', HTTP::POST('password') ? password_hash(HTTP::POST('password'), PASSWORD_BCRYPT, ['cost' => 10]) : FALSE);