Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-11-03 11:49:15 +0300
committerJoas Schilling <coding@schilljs.com>2020-11-26 11:46:44 +0300
commitf4d0368d1442ccfdfbe0418d0eb860da66e6fbe8 (patch)
treecaabad2a98669fb467ed7e03f35055f8baa8c875 /lib/Controller
parent02aa7650cbaa20356d9eaf6a37d8984bd76b750e (diff)
Generate a PIN for users when they join a room with SIP enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/RoomController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index 3b81127e2..fd37addb6 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -1476,6 +1476,7 @@ class RoomController extends AEnvironmentAwareController {
$result = $room->verifyPassword((string) $this->session->getPasswordForRoom($token));
if ($user instanceof IUser) {
$participant = $this->participantService->joinRoom($room, $user, $password, $result['result']);
+ $this->participantService->generatePinForParticipant($room, $participant);
} else {
$participant = $this->participantService->joinRoomAsNewGuest($room, $password, $result['result']);
}