Skip to content

Commit

Permalink
Merge pull request #944 from MuthuvelA/muthu_dev
Browse files Browse the repository at this point in the history
ISSUE NO: 445 GOOGLE AUTHENTICATION LOGIN COMPLETED
  • Loading branch information
arghadipmanna101 authored Jun 1, 2024
2 parents 0efbb86 + 8c09c35 commit a201d2e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions signin.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="google-signin-client_id" content="YOUR_GOOGLE_CLOUD_ID">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign-In</title>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<link rel="stylesheet" href="./signup.css">
</head>
<body>
Expand Down Expand Up @@ -39,6 +41,7 @@
<div class="button-group">
<button onclick="Signin()" class="login-button">Login</button>
</div>
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<div class="button-group">
<button onclick="window.location.href='signup.html'" class="signup-button">Not an Existing User? Signup</button>
</div>
Expand All @@ -49,8 +52,18 @@
</body>
</html>
<script>
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
console.log('ID: ' + profile.getId());
console.log('Name: ' + profile.getName());
console.log('Image URL: ' + profile.getImageUrl());
console.log('Email: ' + profile.getEmail());
}
$(function(){
$("#container").load("./Navabar.html");
});
</script>
<script src="./Signin.js"></script>



6 changes: 6 additions & 0 deletions signup.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,9 @@ button {
color:white;
font-size:12px;
}
.g-signin2{
display: flex;
justify-content: center;
margin-top: 20px;

}

0 comments on commit a201d2e

Please sign in to comment.