From 6a9c8cd3f61d4036022a3023a29b74bea17a9081 Mon Sep 17 00:00:00 2001 From: Ricardo Loureiro Date: Thu, 9 Nov 2023 11:18:22 -0300 Subject: [PATCH] corrections lgoin sso --- .../login-social/login-social.component.html | 12 ++++-------- .../login-social/login-social.component.ts | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/app/pages/login-social/login-social.component.html b/src/app/pages/login-social/login-social.component.html index 03d4e78a..91e72253 100644 --- a/src/app/pages/login-social/login-social.component.html +++ b/src/app/pages/login-social/login-social.component.html @@ -1,10 +1,6 @@
- - - - - Cadastra-se - - + + + + Cadastra-se
- diff --git a/src/app/pages/login-social/login-social.component.ts b/src/app/pages/login-social/login-social.component.ts index d8e6d1a7..90272a6a 100644 --- a/src/app/pages/login-social/login-social.component.ts +++ b/src/app/pages/login-social/login-social.component.ts @@ -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'; + } +} \ No newline at end of file