Skip to content

Commit

Permalink
remove google signin
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Feb 7, 2020
1 parent b4de990 commit ed83150
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 35 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "onePlace User Module",
"type": "oneplace-module",
"license": "BSD-3-Clause",
"version": "1.0.8",
"version": "1.0.9",
"keywords": [
"laminas",
"mvc",
Expand Down
4 changes: 2 additions & 2 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class Module
/**
* Module Version
*
* @since 1.0.8
* @since 1.0.9
*/
const VERSION = '1.0.8';
const VERSION = '1.0.9';

/**
* Load module config file
Expand Down
32 changes: 0 additions & 32 deletions view/layout/login.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,38 +30,6 @@
<!-- MDB core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.10.1/js/mdb.min.js"></script>

<meta name="google-signin-client_id" content="865195135178-9riktlnk2jdknebbdj030j9nq7gdimvt.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script>
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
var id_token = googleUser.getAuthResponse().id_token;
var xhr = new XMLHttpRequest();
xhr.open('POST', '/tokenlogin');
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function() {
console.log('Signed in as: ' + xhr.responseText);
};
xhr.send('idtoken=' + id_token);
//window.location = '/';
}

function onFailure(error) {
console.log(error);
}

function renderButton() {
gapi.signin2.render('g-signin2', {
'scope': 'profile email',
'width': 240,
'height': 50,
'longtitle': true,
'theme': 'dark',
'onsuccess': onSignIn,
'onfailure': onFailure
});
}
</script>
</head>
<body style="padding:0; overflow:hidden;">
<div class="container-fluid px-0 py-0">
Expand Down

0 comments on commit ed83150

Please sign in to comment.