diff options
Diffstat (limited to 'admin/user/insert.php')
-rw-r--r-- | admin/user/insert.php | 3 |
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); |