What in the facebook API becomes the password_hash and salt when a user signs up and authenticates using facebook?
They are remain empty.
I thought there was a portion of users who – if they have their facebook settings set a specific way – could possibly both authenticate using facebook and also set a password.
I think that’s my problem. Or I might have a different problem.
Either way I have a user with Facebook() as a login and a password_hash/salt in the db.
Edit: I just checked with a dummy facebook acct. A password_hash and salt are still being set at registration if I use facebook. So something on my end might be drastically wrong I just don’t know what.
I am not following.
It doesn’t matter at all. You don’t have chance to set password when using an OAuth services if they provide username and email.
The user can use their setting page to reset their password.
Users can authenticate against any of the available mechanisms. As long as the email is the same, a single account can authenticate against Google, Facebook, or a local password. Does that explain what you are seeing?
Ho avuto la stessa domanda. Perché il password_hash (o salt) è ancora impostato nel DB per un account registrato tramite provider OAuth (uso il plugin Discourse OAuth2 Basic). Il mio esperimento dimostra che gli utenti sono in grado di accedere (se non si disabilita “abilita accessi locali” quando OAuth2 è abilitato e configurato) tramite la loro password locale impostata tramite le funzioni di reimpostazione della password nel loro pannello delle preferenze. Possono anche accedere tramite le credenziali dei loro provider OAuth2. Entrambi i meccanismi sono consentiti come ha detto pfaffman.
Sono curioso di sapere quale sia il valore grezzo iniziale del password_hash?