|
@@ -58,12 +58,14 @@ class LuticateUsersController extends LuController {
|
58
|
58
|
* Add a user
|
59
|
59
|
* @param $username string The new user username
|
60
|
60
|
* @param $email string The new user email
|
|
61
|
+ * @param $firstname string The user firstname
|
|
62
|
+ * @param $lastname string The user lastname
|
61
|
63
|
* @param $password string The new user plain text password
|
62
|
64
|
* @return int
|
63
|
65
|
*/
|
64
|
|
- public function add($username, $email, $password)
|
|
66
|
+ public function add($username, $email, $firstname, $lastname, $password)
|
65
|
67
|
{
|
66
|
|
- return LuticateUsersBusiness::add($username, $email, $password);
|
|
68
|
+ return LuticateUsersBusiness::add($username, $email, $firstname, $lastname, $password);
|
67
|
69
|
}
|
68
|
70
|
|
69
|
71
|
/**
|
|
@@ -92,12 +94,14 @@ class LuticateUsersController extends LuController {
|
92
|
94
|
/**
|
93
|
95
|
* Edit the logged user email
|
94
|
96
|
* @param $email string The new user email
|
|
97
|
+ * @param $firstname string The user firstname
|
|
98
|
+ * @param $lastname string The user lastname
|
95
|
99
|
* @param $_user LuticateUsersDbo The logged user
|
96
|
100
|
* @return bool
|
97
|
101
|
*/
|
98
|
|
- public function editMe($email, $_user)
|
|
102
|
+ public function editMe($email, $firstname, $lastname, $_user)
|
99
|
103
|
{
|
100
|
|
- return LuticateUsersBusiness::edit($_user->getId(), $email);
|
|
104
|
+ return LuticateUsersBusiness::edit($_user->getId(), $firstname, $lastname, $email);
|
101
|
105
|
}
|
102
|
106
|
|
103
|
107
|
/**
|