mirror of
https://github.com/dani/vroom.git
synced 2024-06-29 15:03:41 +02:00
Set default role to participant if there's no join password
This commit is contained in:
parent
d5c95fb9eb
commit
a0273ab7aa
3
vroom.pl
3
vroom.pl
|
@ -1472,6 +1472,9 @@ any '/api' => sub {
|
||||||
elsif (!$role && $room->{join_password} && Crypt::SaltedHash->validate($room->{join_password}, $pass)){
|
elsif (!$role && $room->{join_password} && Crypt::SaltedHash->validate($room->{join_password}, $pass)){
|
||||||
$role = 'participant';
|
$role = 'participant';
|
||||||
}
|
}
|
||||||
|
elsif (!$role && !$room->{join_password}){
|
||||||
|
$role = 'participant';
|
||||||
|
}
|
||||||
if ($role){
|
if ($role){
|
||||||
$self->session($room->{name}, {role => $role});
|
$self->session($room->{name}, {role => $role});
|
||||||
if ($ec && !$self->session($room->{name})->{etherpadSession}){
|
if ($ec && !$self->session($room->{name})->{etherpadSession}){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user