More helpful blank login page.
This commit is contained in:
parent
345edaa5d6
commit
fd05760943
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Reference in a new issue