Set default role to participant if there's no join password

master
Daniel Berteaud 9 years ago
parent d5c95fb9eb
commit a0273ab7aa
  1. 3
      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}){

Loading…
Cancel
Save