From 8c2267abecde5ccad049ca73665223b1dd832551 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 16 Oct 2014 21:03:35 +0200 Subject: [PATCH] Simplify login --- vroom.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vroom.pl b/vroom.pl index 68e6f4d..2b9df99 100755 --- a/vroom.pl +++ b/vroom.pl @@ -118,7 +118,7 @@ helper login => sub { my $self = shift; my $ret = {}; if ($self->session('name')){ - return {ok => 1}; + return 1; } my $login = $ENV{'REMOTE_USER'} || lc $self->get_random(256); $self->session( @@ -126,7 +126,7 @@ helper login => sub { ip => $self->tx->remote_address ); $self->app->log->info($self->session('name') . " logged in from " . $self->tx->remote_address); - return {ok => 1}; + return 1; }; # Expire the cookie