aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-11-18 17:05:39 +0000
committerMatthew Somerville <matthew@mysociety.org>2014-11-18 17:25:53 +0000
commite039f86ec38a36486f6bb61c332192d9dc71acdb (patch)
tree8d1458eb30bd5dab870e08ea6c6f67255cdff407 /perllib/FixMyStreet/App/Controller/Report/New.pm
parent57fcd59af03f823528f71c03c8f8043f4fee63ca (diff)
Show logged in message as success, not error.
Fixes #357. Also consolidate almost-identical fill_in_details.html template (for #344).
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 1e9f83aec..ed5be4e99 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -759,7 +759,7 @@ sub process_user : Private {
$report->user( $user );
$report->name( $user->name );
$c->stash->{check_name} = 1;
- $c->stash->{field_errors}->{name} = _('You have successfully signed in; please check and confirm your details are accurate:');
+ $c->stash->{login_success} = 1;
$c->log->info($user->id . ' logged in during problem creation');
return 1;
}
@@ -984,7 +984,7 @@ sub check_for_errors : Private {
}
# all good if no errors
- return 1 unless scalar keys %field_errors;
+ return 1 unless scalar keys %field_errors || $c->stash->{login_success};
$c->stash->{field_errors} = \%field_errors;