Skip to content

Commit

Permalink
corrections lgoin sso
Browse files Browse the repository at this point in the history
  • Loading branch information
castroricardo1 committed Nov 9, 2023
1 parent a2caddd commit 6a9c8cd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
12 changes: 4 additions & 8 deletions src/app/pages/login-social/login-social.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<div class="container">

<button class="google-button"><span>Continuar com o Google</span></button>
<button class="facebook-button"><span>Continuar com o Facebook</span></button>
<button class="email-button"><span>Continuar com e-mail</span></button>
<a href="" class="cadastro">Cadastra-se</a>


<button class="google-button" (click)="loginWithGoogle()"><span>Continuar com o Google</span></button>
<button class="facebook-button" (click)="loginWithFacebook()"><span>Continuar com o Facebook</span></button>
<button class="email-button"><span>Continuar com e-mail</span></button>
<a href="" class="cadastro">Cadastra-se</a>
</div>

17 changes: 15 additions & 2 deletions src/app/pages/login-social/login-social.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import { Component } from '@angular/core';
import { Router } from '@angular/router';

@Component({
selector: 'app-login-social',
templateUrl: './login-social.component.html',
styleUrls: ['./login-social.component.css']
})
export class LoginSocialComponent {

}
export class LoginSocialComponent {

constructor(private router: Router) {}

loginWithGoogle() {

window.location.href = 'http://localhost:8000/auth/login';
}

loginWithFacebook() {

window.location.href = 'http://localhost:8000/facebook';
}
}

0 comments on commit 6a9c8cd

Please sign in to comment.