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_MIC" => "A microphone",
"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 :-)",
"EMAIL_SIGN" => "VROOM! And video conferencing becomes free, simple and safe",
"FEEDBACK" => "Feedback",

@ -20,6 +20,7 @@ our %Lexicon = (
"A_WEBCAM" => "Une webcam",
"A_MIC" => "Un micro",
"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 :-)",
"EMAIL_SIGN" => "VROOM! Et la visio conférence devient libre, simple et sûr",
"FEEDBACK" => "Retour d'expérience",

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

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

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

Loading…
Cancel
Save