Simplify logout

master
Daniel Berteaud 10 years ago
parent 8c2267abec
commit 0a304dcabb
  1. 3
      vroom.pl

@ -133,14 +133,13 @@ helper login => sub {
helper logout => sub { helper logout => sub {
my $self = shift; my $self = shift;
my ($room) = @_; my ($room) = @_;
my $ret = {};
# Logout from etherpad # Logout from etherpad
if ($ec && $self->session($room) && $self->session($room)->{etherpadSessionId}){ if ($ec && $self->session($room) && $self->session($room)->{etherpadSessionId}){
$ec->delete_session($self->session($room)->{etherpadSessionId}); $ec->delete_session($self->session($room)->{etherpadSessionId});
} }
$self->session( expires => 1 ); $self->session( expires => 1 );
$self->app->log->info($self->session('name') . " logged out"); $self->app->log->info($self->session('name') . " logged out");
return {ok => 1}; return 1;
}; };
# Create a new room in the DB # Create a new room in the DB

Loading…
Cancel
Save