Don't prompt for password if invited

Also bypass the lock settings as if you are invited, it probably means the chairman want you to join
This commit is contained in:
Daniel Berteaud 2015-07-22 16:03:54 +02:00
parent f685fdbc78
commit 21dc1a9e9b
1 changed files with 7 additions and 0 deletions

View File

@ -2339,6 +2339,13 @@ get '/:room' => sub {
room => $room,
);
}
if ($self->check_invite_token($room,$token)){
$self->associate_key_to_room(
room => $room,
key => $self->session('key'),
role => 'participant'
);
}
# pad doesn't exist yet ?
if ($optf->{etherpad} && !$data->{etherpad_group}){
$self->create_pad($room);