Skip to content

Commit

Permalink
fix(components/login): dropping facebook from default oauth providers
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Nov 29, 2024
1 parent 18430ba commit 1620816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion @ecomplus/storefront-components/src/js/LoginBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default {
.then(({ host, baseUri, oauthPath, providers }) => {
const oauthProviders = []
for (const provider in providers) {
if (providers[provider]) {
if (providers[provider] && provider !== 'facebook') {
const { faIcon, providerName } = providers[provider]
let link = host + baseUri + provider + oauthPath
const referral = typeof window === 'object' &&
Expand Down
7 changes: 1 addition & 6 deletions @ecomplus/storefront-components/src/js/LoginModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default {
.then(({ host, baseUri, oauthPath, providers }) => {
const oauthProviders = []
for (const provider in providers) {
if (providers[provider]) {
if (providers[provider] && provider !== 'facebook') {
const { faIcon, providerName } = providers[provider]
let link = host + baseUri + provider + oauthPath
const referral = typeof window === 'object' &&
Expand Down Expand Up @@ -153,11 +153,6 @@ export default {

presetOauthProviders () {
this.oauthProviders = [
{
faIcon: 'fa-facebook-f',
providerName: 'Facebook',
provider: 'facebook'
},
{
faIcon: 'fa-google',
providerName: 'Google',
Expand Down

0 comments on commit 1620816

Please sign in to comment.