Commit 913e6179 authored by raphael.peim's avatar raphael.peim

Update api

parent 5bb4126c
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
parent::exec('USER_CREATE', [':firstname' => $post->firstname, parent::exec('USER_CREATE', [':firstname' => $post->firstname,
':lastname' => $post->lastname, ':lastname' => $post->lastname,
':login' => $post->login, ':login' => $post->login,
':avatar' => $post->avatar,
':avatar_url' => $post->avatar_url,
':email' => $post->email, ':email' => $post->email,
':password' => $post->password, ':password' => $post->password,
':role' => $post->role]); ':role' => $post->role]);
......
<?php <?php
User::addSqlQuery('USER_CREATE', User::addSqlQuery('USER_CREATE',
'INSERT INTO `users` VALUES (NULL, :firstname, :lastname, :login, :email, :password, :role)'); 'INSERT INTO `users` VALUES (NULL, :firstname, :lastname, :login, :avatar, :avatar_url, :email, :password, :role)');
User::addSqlQuery('USER_GET_LIST', User::addSqlQuery('USER_GET_LIST',
'SELECT * FROM `users` ORDER BY `id` '); 'SELECT * FROM `users` ORDER BY `id` ');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment