From 3c74404321d44fd6de223ed349fa47e209633340 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 22 Jan 2015 16:42:21 +0100 Subject: [PATCH] Fix configuration handling with empty password --- vroom.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vroom.pl b/vroom.pl index 5dacc6c..4e3da50 100755 --- a/vroom.pl +++ b/vroom.pl @@ -1367,7 +1367,7 @@ any '/api' => sub { $room->{locked} = ($req->{param}->{locked}) ? '1' : '0'; $room->{ask_for_name} = ($req->{param}->{ask_for_name}) ? '1' : '0'; foreach my $pass (qw/join_password owner_password/){ - if (!$req->{param}->{$pass}){ + if ($req->{param}->{$pass} eq Mojo::JSON->false){ $room->{$pass} = undef; } elsif ($req->{param}->{$pass} ne ''){