From: Errietta Kostala Date: Wed, 21 Jan 2015 17:12:23 +0000 (+0000) Subject: Move google client id to config X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=740a6e04d1cc0bc92329f9f4317108d33aa94087;p=scpubgit%2Fstemmaweb.git Move google client id to config --- diff --git a/lib/stemmaweb/Controller/Users.pm b/lib/stemmaweb/Controller/Users.pm index 38c8d48..1e87b37 100644 --- a/lib/stemmaweb/Controller/Users.pm +++ b/lib/stemmaweb/Controller/Users.pm @@ -67,6 +67,8 @@ before login => sub { if ($c->req->params->{email} && $c->req->params->{id_token}) { $c->req->param( realm => 'google'); } + + $c->stash->{google_client_id} = $c->config->{'Authentication::Credential::Google'}->{client_id}; }; =head2 register with recaptcha diff --git a/root/src/auth/login.tt b/root/src/auth/login.tt index fd60478..8ea317b 100644 --- a/root/src/auth/login.tt +++ b/root/src/auth/login.tt @@ -82,7 +82,7 @@ $(document).ready(function() { public_cert_url https://www.googleapis.com/oauth2/v1/certs + client_id 577442226093-pi2ud795g49ibip78bgfoabhl4kdrguc.apps.googleusercontent.com