diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-29 20:55:47 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-29 20:55:47 +0000 |
commit | 12653962d58df6be6ff1a753e3370ff3077030c1 (patch) | |
tree | 937812fe7e8ae328ec05ef0d2db409c9c0b09be8 /perllib/FixMyStreet/App/Controller/Auth.pm | |
parent | 487198a6cd46e9824045676773990b73baac2d89 (diff) | |
parent | 250cbde400f03f20f1801e828a6c9da3c0881381 (diff) |
Merge branch 'access-token-auth'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Auth.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Auth.pm b/perllib/FixMyStreet/App/Controller/Auth.pm index 80e407147..455022e03 100644 --- a/perllib/FixMyStreet/App/Controller/Auth.pm +++ b/perllib/FixMyStreet/App/Controller/Auth.pm @@ -419,6 +419,8 @@ Mainly intended for testing but might also be useful for ajax calls. sub check_auth : Local { my ( $self, $c ) = @_; + $c->authenticate(undef, 'access_token') unless $c->user; + # choose the response my ( $body, $code ) # = $c->user |