Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    Email confirmation for all users

    Pianificato Fissato Bloccato Spostato Uncategorized
    6 Post 2 Autori 42 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • E Questo utente è esterno a questo forum
      eugene_thedev@community.nodebb.org
      ultima modifica di

      As i understand it is required for a user to have a confirmed email therefore nodebb-plugin-session-sharing matches the email from the cookie and the one in the database? Nevertheless, as I understand just setting all users "emailConfirmed": 1 is not enough for it to work. So I want to know, what do I need to do to confirm all my users email?

      thanks in advance

      E 2 Risposte Ultima Risposta Rispondi Cita 0
      • E Questo utente è esterno a questo forum
        eugene_thedev@community.nodebb.org @eugene_thedev@community.nodebb.org
        ultima modifica di

        julian I will be very thankful for your help in this question
        I can see email field in my cookie with the exact email as in the manage/users and also there is a green mark nearby email.

        1 Risposta Ultima Risposta Rispondi Cita 0
        • E Questo utente è esterno a questo forum
          eugene_thedev@community.nodebb.org @eugene_thedev@community.nodebb.org
          ultima modifica di

          Also, how matching exactly works? For example, if I pass(to a cookie) as a value to the key field an id of the user in the nodebb, will it match it? Or do i need to pass to the cookie the exact email as well? Thanks

          julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
          • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
            julian@community.nodebb.org @eugene_thedev@community.nodebb.org
            ultima modifica di

            eugene_thedev you'll want to use the email validation methods in src/user/email.js to check whether a user's email is validated.

            You can also do this programmatically by calling setUserField to set the email, and then user.email.confirmByUid

            1 Risposta Ultima Risposta Rispondi Cita 0
            • E Questo utente è esterno a questo forum
              eugene_thedev@community.nodebb.org
              ultima modifica di

              julian, thanks for you answer, also could answer my last question?

              Also, how matching exactly works? For example, if I pass(to a cookie) as a value to the key field an id of the user in the nodebb, will it match it? Or do i need to pass to the cookie the exact email as well? Thanks

              julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
              • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                julian@community.nodebb.org @eugene_thedev@community.nodebb.org
                ultima modifica di

                eugene_thedev session sharing plugin will look for id first, and check it against the stored hash for it.

                Otherwise it will fall back to email.

                1 Risposta Ultima Risposta Rispondi Cita 0
                • Primo post
                  Ultimo post