diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-11-18 17:05:39 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-11-18 17:25:53 +0000 |
commit | e039f86ec38a36486f6bb61c332192d9dc71acdb (patch) | |
tree | 8d1458eb30bd5dab870e08ea6c6f67255cdff407 /perllib/FixMyStreet/App/Controller/Report/Update.pm | |
parent | 57fcd59af03f823528f71c03c8f8043f4fee63ca (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/Update.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index bc79cafd3..b97420238 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -137,7 +137,7 @@ sub process_user : Private { my $user = $c->user->obj; $update->user( $user ); $update->name( $user->name ); - $c->stash->{field_errors}->{name} = _('You have successfully signed in; please check and confirm your details are accurate:'); + $c->stash->{login_success} = 1; return 1; } @@ -290,6 +290,7 @@ sub check_for_errors : Private { # all good if no errors return 1 unless ( scalar keys %field_errors + || $c->stash->{login_success} || ( $c->stash->{errors} && scalar @{ $c->stash->{errors} } ) ); $c->stash->{field_errors} = \%field_errors; |