diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-01-27 10:34:55 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-01-27 10:34:55 +0000 |
commit | b8083a462aebf542f6f39c4201e1f09248b7e0e7 (patch) | |
tree | ab44be742664db2dd720efc03326db0acef22dde /perllib/FixMyStreet/App/Controller/Tokens.pm | |
parent | ac59f93b2228f5ff77ca7b7aff6fc3be54d360cd (diff) | |
parent | 5adabce92647a6b9e12887af7959efcfef4877d4 (diff) |
Merge branch '1146-social-login'
Conflicts:
templates/web/base/report/new/fill_in_details_form.html
templates/web/base/report/update-form.html
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Tokens.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Tokens.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Tokens.pm b/perllib/FixMyStreet/App/Controller/Tokens.pm index b1d60fe32..eb35fd152 100644 --- a/perllib/FixMyStreet/App/Controller/Tokens.pm +++ b/perllib/FixMyStreet/App/Controller/Tokens.pm @@ -105,6 +105,7 @@ sub confirm_problem : Path('/P') { $problem->user->phone( $data->{phone} ) if $data->{phone}; $problem->user->password( $data->{password}, 1 ) if $data->{password}; $problem->user->title( $data->{title} ) if $data->{title}; + $problem->user->facebook_id( $data->{facebook_id} ) if $data->{facebook_id}; $problem->user->update; } $c->authenticate( { email => $problem->user->email }, 'no_password' ); @@ -230,6 +231,7 @@ sub confirm_update : Path('/C') { if ( $data->{name} || $data->{password} ) { $comment->user->name( $data->{name} ) if $data->{name}; $comment->user->password( $data->{password}, 1 ) if $data->{password}; + $comment->user->facebook_id( $data->{facebook_id} ) if $data->{facebook_id}; $comment->user->update; } |