Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Raphaël PEIM
projet-cdaw
Commits
913e6179
Commit
913e6179
authored
Dec 04, 2020
by
raphael.peim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update api
parent
5bb4126c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
User.class.php
BackEnd/api/model/User.class.php
+2
-0
User.sql.php
BackEnd/api/sql/User.sql.php
+1
-1
No files found.
BackEnd/api/model/User.class.php
View file @
913e6179
...
@@ -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
]);
...
...
BackEnd/api/sql/User.sql.php
View file @
913e6179
<?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` '
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment