summaryrefslogtreecommitdiffstats
path: root/admin/user/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/user/update.php')
-rw-r--r--admin/user/update.php13
1 files changed, 1 insertions, 12 deletions
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()
]);