È possibile bypassare l'email di attivazione?

Ho creato l’utente tramite API impostando activate su true, e dal pannello di amministrazione l’utente risulta attivato.

Tuttavia, quando provo ad accedere come utente, ricevo il seguente messaggio:

Non puoi ancora accedere. In precedenza abbiamo inviato un’email di attivazione all’indirizzo user@email.com. Segui le istruzioni contenute in quell’email per attivare il tuo account.

Perché ricevo questo messaggio? Stavo cercando di evitarlo. È possibile impostare qualcosa per ignorarlo?

Voglio ignorarlo perché sto semplicemente migrando gli utenti esistenti dal mio vecchio forum al nuovo forum Discourse; quindi, chiedere loro di attivare l’account sembra solo un’inconvenienza non necessaria. Capisco perfettamente perché sarebbe necessario per un nuovo utente che si è appena registrato su questo forum.

Inoltre, al momento sto creando un solo utente a scopo di test, ma in futuro ne creerò 5000. Potrei sbagliare e dover rieseguire il processo, quindi in questo momento non vorrei assolutamente che venissero inviate email fino a quando non sarò pronto a “andare live”. È possibile disabilitare l’invio delle email?

You might try to deactivate and then activate again. I’ve seen before that creating and activated user with the API doesn’t work.

Once a user is deactivated, they’ll have to reactivate their account via email. So this would still require an “effort” on their part.

When users from an old forum moved to our current forum, everything was via the invite email and no one complained. Most filled out their profiles except a few. The “hardest” part was getting them to do their profiles/bios. I think it would easier on you to just let your users go through the steps that are already set up - click on email link, set up their account… done. Just remind them they’ll probably have to change their username from the default that Discourse assigns (everything before the @ in their email address).

Here’s how I did it in Feb 2018:

Thanks that worked, it does seem that create user with activate set to true means it doesnt send email but doesnt activate properly either so when you try to login first time it tells you that you have been sent an activate email when you haven, but I may have got this wrong.

But deactivating and then activating lets you login first time without activation, and no email is sent which is what I wanted.