https://github.com/ParsePlatform/parse-server
Verifica email e la password resettate
Verifica indirizzi email degli utenti e consentendo di reimpostazione password via e-mail requries un adattatore e-mail. Come parte del pacchetto parse-server forniamo un adattatore per l'invio di e-mail tramite Mailgun. Per usarlo, iscrivi per Mailgun, e aggiungere questo al vostro codice di inizializzazione:
var server = ParseServer({
...otherOptions,
// Enable email verification
verifyUserEmails: true,
// The public URL of your app.
// This will appear in the link that is used to verify email addresses and reset passwords.
// Set the mount path as it is in serverURL
publicServerURL: 'https://example.com/parse',
// Your apps name. This will appear in the subject and body of the emails that are sent.
appName: 'Parse App',
// The email adapter
emailAdapter: {
module: 'parse-server-simple-mailgun-adapter',
options: {
// The address that your emails come from
fromAddress: '[email protected]',
// Your domain from mailgun.com
domain: 'example.com',
// Your API key from mailgun.com
apiKey: 'key-mykey',
}
}
});
È possibile utilizzare anche altri adattatori di posta elettronica hanno contribuito da comunità, come parse-server-SendGrid-adattatore o analizzare-server-mandrillo -adattatore.
Ciao Potrei risolverlo, e sotto il modo in cui è possibile ottenerlo: –