diff options
author | Dave Arter <davea@mysociety.org> | 2019-07-23 12:28:04 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-08-16 14:25:12 +0100 |
commit | fba6d0112c68267baa56f8760878dd8dccb4b2d8 (patch) | |
tree | a336620c3273421ef6ad299cdddb29fc6aec9dc3 /perllib/FixMyStreet/App/Controller/Report/Update.pm | |
parent | d5238a53c64c72ed83112875721d56f8c279798c (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.pm | 4 |
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; } |