From a0273ab7aa62565913fa2a59bfa43d86907fb4fe Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 23 Jun 2015 09:50:48 +0200 Subject: [PATCH] Set default role to participant if there's no join password --- vroom.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vroom.pl b/vroom.pl index 86ffc43..3b4699c 100755 --- a/vroom.pl +++ b/vroom.pl @@ -1472,6 +1472,9 @@ any '/api' => sub { elsif (!$role && $room->{join_password} && Crypt::SaltedHash->validate($room->{join_password}, $pass)){ $role = 'participant'; } + elsif (!$role && !$room->{join_password}){ + $role = 'participant'; + } if ($role){ $self->session($room->{name}, {role => $role}); if ($ec && !$self->session($room->{name})->{etherpadSession}){