Skip to content

Commit

Permalink
Google Sign-On with new libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Saparbek-Nagashibekov committed Sep 24, 2022
1 parent cd882f8 commit 1d831fc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions templates/login/login_core.html.twig
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{% set srOnly = (showLabels == true) ? "" : "sr-only" %}
<!DOCTYPE html>
<html lang="en">
<head>
{% if displayGoogleSignin %}
<meta name="google-signin-client_id" content="{{ googleSigninClientID|attr }}">
<script src="https://accounts.google.com/gsi/client" async defer></script>
<div id="g_id_onload"
data-client_id="{{ googleSigninClientID|attr }}"
data-callback="onSignInSuccess" data-auto_prompt="false">
</div>
{% endif %}
<script src="https://accounts.google.com/gsi/client" async defer></script>
<div id="g_id_onload"
data-client_id="{{ googleSigninClientID }}"
data-callback="onSignInSuccess" data-auto_prompt="false">
</div>

<title>{{ title|text }} {{ "Login"|xlt }}</title>
{% block head %}{% endblock %}
Expand Down

0 comments on commit 1d831fc

Please sign in to comment.