Send join password in email invitations

Fix #26
master
Daniel Berteaud 11 years ago
parent 0226271045
commit eaf20b6a13
  1. 1
      lib/Vroom/I18N/en.pm
  2. 1
      lib/Vroom/I18N/fr.pm
  3. 6
      public/vroom.pl
  4. 5
      templates/default/invite.email_html.ep
  5. 4
      templates/default/invite.email_text.ep

@ -18,6 +18,7 @@ our %Lexicon = (
"A_WEBCAM" => "A webcam", "A_WEBCAM" => "A webcam",
"A_MIC" => "A microphone", "A_MIC" => "A microphone",
"WHEN_YOU_ARE_READY" => "When you are ready, go to this address to join the conference", "WHEN_YOU_ARE_READY" => "When you are ready, go to this address to join the conference",
"YOU_WILL_NEED_THIS_PASSWORD" => "The following password is needed to join the room",
"HAVE_A_NICE_MEETING" => "Have a nice meeting :-)", "HAVE_A_NICE_MEETING" => "Have a nice meeting :-)",
"EMAIL_SIGN" => "VROOM! And video conferencing becomes free, simple and safe", "EMAIL_SIGN" => "VROOM! And video conferencing becomes free, simple and safe",
"FEEDBACK" => "Feedback", "FEEDBACK" => "Feedback",

@ -20,6 +20,7 @@ our %Lexicon = (
"A_WEBCAM" => "Une webcam", "A_WEBCAM" => "Une webcam",
"A_MIC" => "Un micro", "A_MIC" => "Un micro",
"WHEN_YOU_ARE_READY" => "Quand vous êtes prêt, rendez-vous sur cette adresse pour joindre la conférence", "WHEN_YOU_ARE_READY" => "Quand vous êtes prêt, rendez-vous sur cette adresse pour joindre la conférence",
"YOU_WILL_NEED_THIS_PASSWORD" => "Le mot de passe suivant est nécessaire pour rejoindre le salon",
"HAVE_A_NICE_MEETING" => "Bonne réunion :-)", "HAVE_A_NICE_MEETING" => "Bonne réunion :-)",
"EMAIL_SIGN" => "VROOM! Et la visio conférence devient libre, simple et sûr", "EMAIL_SIGN" => "VROOM! Et la visio conférence devient libre, simple et sûr",
"FEEDBACK" => "Retour d'expérience", "FEEDBACK" => "Retour d'expérience",

@ -437,12 +437,13 @@ post '/action' => sub {
); );
} }
$self->stash(room => $room); $self->stash(room => $room);
my $data = $self->get_room($room);
return $self->render( return $self->render(
json => { json => {
msg => sprintf ($self->l("ERROR_ROOM_s_DOESNT_EXIST"), $room) msg => sprintf ($self->l("ERROR_ROOM_s_DOESNT_EXIST"), $room)
}, },
status => '500' status => '500'
) unless ($self->get_room($room)); ) unless ($data);
if ($action eq 'invite'){ if ($action eq 'invite'){
my $rcpt = $self->param('recipient'); my $rcpt = $self->param('recipient');
@ -453,7 +454,8 @@ post '/action' => sub {
], ],
data => [ data => [
template => 'invite', template => 'invite',
room => $room room => $room,
joinPassword => $data->{join_password}
], ],
) || ) ||
return $self->render( return $self->render(

@ -26,6 +26,11 @@
</h1> </h1>
</center> </center>
</p> </p>
<% if ($joinPassword && $joinPassword ne ''){ %>
<p>
<%=l 'YOU_WILL_NEED_THIS_PASSWORD' %>: <%= $joinPassword %>
</p>
<% } %>
<br> <br>
<p> <p>
<%=l 'HAVE_A_NICE_MEETING' %> <%=l 'HAVE_A_NICE_MEETING' %>

@ -12,6 +12,10 @@
<%= $url . $room %> <%= $url . $room %>
<% if ($joinPassword && $joinPassword ne ''){ %>
<%=l 'YOU_WILL_NEED_THIS_PASSWORD' %>: <%== $joinPassword %>
<% } %>
<%=l 'HAVE_A_NICE_MEETING' %> <%=l 'HAVE_A_NICE_MEETING' %>
-- --
<%=l 'EMAIL_SIGN' %> <%=l 'EMAIL_SIGN' %>

Loading…
Cancel
Save