|
@@ 88-96 (lines=9) @@
|
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
|
| 88 |
|
function credentialDeclinedSharedNotification($data){ |
| 89 |
|
$notification = $this->manager->createNotification(); |
| 90 |
|
$notification->setApp('passman') |
| 91 |
|
->setUser($data['target_user']) |
| 92 |
|
->setDateTime(new \DateTime()) |
| 93 |
|
->setObject('passman_share_request', $data['req_id']) // type and id |
| 94 |
|
->setSubject('credential_share_denied', [$data['from_user'], $data['credential_label']]); // subject and parameters |
| 95 |
|
$this->manager->notify($notification); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
|
| 99 |
|
function credentialAcceptedSharedNotification($data){ |
|
@@ 99-107 (lines=9) @@
|
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
|
| 99 |
|
function credentialAcceptedSharedNotification($data){ |
| 100 |
|
$notification = $this->manager->createNotification(); |
| 101 |
|
$notification->setApp('passman') |
| 102 |
|
->setUser($data['target_user']) |
| 103 |
|
->setDateTime(new \DateTime()) |
| 104 |
|
->setObject('passman_share_request', $data['req_id']) // type and id |
| 105 |
|
->setSubject('credential_share_accepted', [$data['from_user'], $data['credential_label']]); // subject and parameters |
| 106 |
|
$this->manager->notify($notification); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
} |