diff options
author | Dave Arter <davea@mysociety.org> | 2019-06-19 15:17:49 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-08-16 12:01:13 +0100 |
commit | 8d9429a690dc6814ca3f356eb2c67cfa045dfbec (patch) | |
tree | 42b1cd83d8eab48ecfb7d89a481d5b39d96ffadd /perllib/FixMyStreet/App/Controller/Auth | |
parent | eb03257ccc8510f5bab9f8786b8bd6cebedda86a (diff) |
Set user’s name when creating user via OAuth
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Auth/Social.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Auth/Social.pm b/perllib/FixMyStreet/App/Controller/Auth/Social.pm index 097cac984..d1a2c37cb 100644 --- a/perllib/FixMyStreet/App/Controller/Auth/Social.pm +++ b/perllib/FixMyStreet/App/Controller/Auth/Social.pm @@ -179,6 +179,7 @@ sub oauth_success : Private { } else { # No matching ID, store ID for use later $c->session->{oauth}{$type . '_id'} = $uid; + $c->session->{oauth}{name} = $name; $c->stash->{oauth_need_email} = 1; } } |