aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/App/Controller/Auth.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Auth.pm b/perllib/FixMyStreet/App/Controller/Auth.pm
index d4784ae8c..e23690368 100644
--- a/perllib/FixMyStreet/App/Controller/Auth.pm
+++ b/perllib/FixMyStreet/App/Controller/Auth.pm
@@ -466,7 +466,8 @@ sub ajax_sign_in : Path('ajax/sign_in') {
my $return = {};
if ( $c->forward( 'sign_in', [ $c->get_param('email') ] ) ) {
- $return->{name} = $c->user->name;
+ $return->{name} = $c->user->name || '-'; # App currently requires something returned
+ $return->{success} = 1;
} else {
$return->{error} = 1;
}