Fix issue with login error

fixes #9
This commit is contained in:
Tom Bloor 2017-07-20 17:34:33 +01:00
parent a6724f2495
commit 243722df93

View file

@ -85,7 +85,7 @@ sub post_login {
session_key => $session_key, session_key => $session_key,
}); });
} }
} else { }
return $c->render( return $c->render(
json => { json => {
success => Mojo::JSON->false, success => Mojo::JSON->false,
@ -94,7 +94,6 @@ sub post_login {
status => 401 status => 401
); );
} }
}
sub post_logout { sub post_logout {
my $c = shift; my $c = shift;