Skip to content

Commit

Permalink
redirect after login
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdonin committed Jan 24, 2024
1 parent 619d045 commit 7da99de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
<li class="nav-item"><a class="nav-link active" href="/index">Home</a></li>
<!--<li class="nav-item"><a class="nav-link" href="/integrations">Tecnologias</a></li>-->
<li class="nav-item"><a class="nav-link" href="/pricing">Preços</a></li>
<li class="nav-item"><a class="nav-link" href="/contacts">Contatos</a></li>
<li class="nav-item"> <a class="nav-link" href="/contacts">Contatos</a></li>
<li class="nav-item"><a class="nav-link" href="/login">Log in</a></li>
</ul><a class="btn btn-primary shadow" role="button" href="/login">Sign up</a>
</div>
</div>
</nav>

<div id="videoDashboard" class="container">
<!-- Videos will be added here -->
</div>
<footer>
<div class="container py-4 py-lg-5">
<hr>
Expand Down
4 changes: 2 additions & 2 deletions login.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h2 class="display-6 fw-bold mb-5"><span class="underline pb-1"><strong>Login</s
.then(response => {
if (response.ok) {
// Redirect to the home page or dashboard
window.location.href = '/';
window.location.href = 'http://localhost:50000/dashboard';
} else {
// Handle error response
console.error('Error:', response.statusText);
Expand All @@ -100,7 +100,7 @@ <h2 class="display-6 fw-bold mb-5"><span class="underline pb-1"><strong>Login</s
// Initialize the Google Sign-In API
gapi.load('auth2', function() {
gapi.auth2.init({
client_id: 'YOUR_CLIENT_ID'
client_id: '782814918535-qrjhvrbipesrl7in4ioj3f467bpflkts.apps.googleusercontent.com'
});
});

Expand Down

0 comments on commit 7da99de

Please sign in to comment.