diff options
Diffstat (limited to 'application/modules/user/controllers/GroupController.php')
| -rw-r--r-- | application/modules/user/controllers/GroupController.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/application/modules/user/controllers/GroupController.php b/application/modules/user/controllers/GroupController.php index 9eca3e3..9db2ccf 100644 --- a/application/modules/user/controllers/GroupController.php +++ b/application/modules/user/controllers/GroupController.php @@ -411,7 +411,11 @@ class User_GroupController extends Zend_Controller_Action $membership->setGroupID($groupRequest->getGroupID()); $membership->setPersonID($groupRequest->getPersonID()); $membership->setRoleID($_POST['roleID']); - $membership->setSuspended(0); + $membership->setSuspended(0); + $apikey = randomString(32); + $membership->setApikey($apikey); + + try { $id = $this->membershipMapper->save($membership); |
