From fd0576094331ae55ab6b3b7529919829bba34623 Mon Sep 17 00:00:00 2001
From: Paul Dill
Date: Thu, 9 Mar 2017 16:48:49 +0000
Subject: [PATCH] More helpful blank login page.
---
lib/Pear/LocalLoop/Controller/Auth.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Pear/LocalLoop/Controller/Auth.pm b/lib/Pear/LocalLoop/Controller/Auth.pm
index e47b959..dd40994 100644
--- a/lib/Pear/LocalLoop/Controller/Auth.pm
+++ b/lib/Pear/LocalLoop/Controller/Auth.pm
@@ -8,7 +8,7 @@ use Mojo::JSON;
#Because of "before_dispatch" this will never be accessed unless the user is not logged in.
sub get_login {
my $self = shift;
- $self->render( text => 'This will be the login page.' );
+ return $self->render( success => Mojo::JSON->true, text => 'This will be the login page.', status => 200 );
}
#TODO set session cookie and add it to the database.