aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/My.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-09-25 18:23:44 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-09-30 21:13:33 +0100
commit83825ebf47cfd40ac649853347c8352944a3d32a (patch)
treede46361b23538b6ba9644898a9f5a55b4aeed9e4 /perllib/FixMyStreet/App/Controller/My.pm
parent4e6d1c359c94b0aa864bc48f28a8962113a47629 (diff)
Allow verify/change/add email/phone in profile.
This expands the 'change email' functionality to work with phone number also, allow addition of missing details, and verifying of unverified details.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/My.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm
index 5b80a4a08..9647fae9a 100644
--- a/perllib/FixMyStreet/App/Controller/My.pm
+++ b/perllib/FixMyStreet/App/Controller/My.pm
@@ -176,6 +176,10 @@ sub setup_page_data : Private {
any_zoom => 1,
)
if @$pins;
+
+ foreach (qw(flash_message)) {
+ $c->stash->{$_} = $c->flash->{$_} if $c->flash->{$_};
+ }
}
sub planned_change : Path('planned/change') {