2016-05-22 16 views

Odpowiedz

-1

Znaleziony poprawkę na to tutaj:

https://github.com/firebase/firebaseui-web/issues/42

Pobierz plik firebase-ui-auth.js (można skopiować version 0.5 od here). Musisz zmienić jeden znak i hostować plik samodzielnie, zamiast korzystać z CDN.

W pliku znajdź: "accountChooserEnabled",!0 i zmień !0 na !1.

To mi się udało!

+1

To jest już przestarzały. –

5

Możesz wyłączyć, dodając wpis do zmiennej uiConfig w Firebase. Trzeba dodać to w zmiennej uiConfig:

'credentialHelper': firebaseui.auth.CredentialHelper.NONE 

Oto przykład z niego wewnątrz uiConfig:

var uiConfig = { 
    callbacks: { 
     signInSuccess: function (currentUser, credential, redirectUrl) { 
      return true; 
     }, 
     uiShown: function() { 
      document.getElementById('loader').style.display = 'none'; 
     } 
    }, 
    //Start it here 
    credentialHelper: firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM, 
    //End it here 
    signInFlow: 'popup', 
    'credentialHelper': firebaseui.auth.CredentialHelper.NONE 
      signInSuccessUrl: '<url-to-redirect-to-on-success>', 
    signInOptions: [ 
     // Leave the lines as is for the providers you want to offer your users. 
     firebase.auth.GoogleAuthProvider.PROVIDER_ID, 
     firebase.auth.FacebookAuthProvider.PROVIDER_ID, 
     firebase.auth.TwitterAuthProvider.PROVIDER_ID, 
     firebase.auth.EmailAuthProvider.PROVIDER_ID 
    ], 
    // Terms of service url. 
    tosUrl: '<your-tos-url>' 
}; 

var ui = new firebaseui.auth.AuthUI(firebase.auth()); 
ui.start('#firebaseui-auth-container', uiConfig); 
Powiązane problemy