aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/Update.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-07-23 12:28:04 +0100
committerDave Arter <davea@mysociety.org>2019-08-16 14:25:12 +0100
commitfba6d0112c68267baa56f8760878dd8dccb4b2d8 (patch)
treea336620c3273421ef6ad299cdddb29fc6aec9dc3 /perllib/FixMyStreet/App/Controller/Report/Update.pm
parentd5238a53c64c72ed83112875721d56f8c279798c (diff)
Allow cobrand to store extra fields on user when logging in via oauth
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/Update.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm
index 68c8a41ce..0f3f8c098 100644
--- a/perllib/FixMyStreet/App/Controller/Report/Update.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm
@@ -580,6 +580,10 @@ sub process_confirmation : Private {
$comment->user->$_( $data->{$_} ) if $data->{$_};
}
$comment->user->add_oidc_id($data->{oidc_id}) if $data->{oidc_id};
+ $comment->user->extra({
+ %{ $comment->user->get_extra() },
+ %{ $data->{extra} }
+ }) if $data->{extra};
$comment->user->password( $data->{password}, 1 ) if $data->{password};
$comment->user->update;
}