summaryrefslogtreecommitdiffstats
path: root/admin/user
diff options
context:
space:
mode:
Diffstat (limited to 'admin/user')
-rw-r--r--admin/user/delete.php7
-rw-r--r--admin/user/insert.php13
-rw-r--r--admin/user/update.php13
3 files changed, 3 insertions, 30 deletions
diff --git a/admin/user/delete.php b/admin/user/delete.php
index 7023246..28d1b2a 100644
--- a/admin/user/delete.php
+++ b/admin/user/delete.php
@@ -36,12 +36,7 @@ try {
$FormTemplate->set('FORM', [
'TYPE' => 'DELETE',
'INFO' => $messages ?? [],
- 'DATA' => [
- 'ID' => $Attribute->get('id'),
- 'BODY' => $Attribute->get('body'),
- 'TIME_INSERT' => $Attribute->get('time_insert'),
- 'TIME_UPDATE' => $Attribute->get('time_update'),
- ],
+ 'DATA' => array_change_key_case($Attribute->getAll(['password']), CASE_UPPER),
'TOKEN' => Application::getSecurityToken()
]);
diff --git a/admin/user/insert.php b/admin/user/insert.php
index 81daf98..2d49322 100644
--- a/admin/user/insert.php
+++ b/admin/user/insert.php
@@ -47,18 +47,7 @@ try {
$FormTemplate->set('FORM', [
'TYPE' => 'INSERT',
'INFO' => $messages ?? [],
- 'DATA' => [
- 'ID' => $Attribute->get('id'),
- 'SLUG' => $Attribute->get('slug'),
- 'USERNAME' => $Attribute->get('username'),
- 'PASSWORD' => NULL,
- 'FULLNAME' => $Attribute->get('fullname'),
- 'MAILADDR' => $Attribute->get('mailaddr'),
- 'BODY' => $Attribute->get('body'),
- 'ARGV' => $Attribute->get('argv'),
- 'TIME_INSERT' => $Attribute->get('time_insert'),
- 'TIME_UPDATE' => $Attribute->get('time_update'),
- ],
+ 'DATA' => array_change_key_case($Attribute->getAll(['password']), CASE_UPPER),
'TOKEN' => Application::getSecurityToken()
]);
diff --git a/admin/user/update.php b/admin/user/update.php
index cdacfa0..3ba6df8 100644
--- a/admin/user/update.php
+++ b/admin/user/update.php
@@ -50,18 +50,7 @@ try {
$FormTemplate->set('FORM', [
'TYPE' => 'UPDATE',
'INFO' => $messages ?? [],
- 'DATA' => [
- 'ID' => $Attribute->get('id'),
- 'SLUG' => $Attribute->get('slug'),
- 'USERNAME' => $Attribute->get('username'),
- 'PASSWORD' => NULL,
- 'FULLNAME' => $Attribute->get('fullname'),
- 'MAILADDR' => $Attribute->get('mailaddr'),
- 'BODY' => $Attribute->get('body'),
- 'ARGV' => $Attribute->get('argv'),
- 'TIME_INSERT' => $Attribute->get('time_insert'),
- 'TIME_UPDATE' => $Attribute->get('time_update'),
- ],
+ 'DATA' => array_change_key_case($Attribute->getAll(['password']), CASE_UPPER),
'TOKEN' => Application::getSecurityToken()
]);