# Wizard will not send validation email more than once

**URL:** https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175
**Category:** UX
**Created:** [January 3, 2018, 3:59pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175 "2018-01-03T15:59:22Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 3, 2018, 3:59pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/1 "2018-01-03T15:59:22Z")

</div>

I had a topic about this once before, but I can’t find it. This is the second time this has happened in the last while, so I’m bringing it up again.

Synopsis: If a new admin user visits the Wizard and creates their admin account but their outgoing email is broken, there is little way for them to ever get logged in.

Steps to reproduce: Visit wizard, set up account and have validation email sent, but have that email not be delivered (e.g., because they hadn’t finished configuring Mailgun).

If you re-visit the site, the Wizard appears because they never validated the account. It would seem like they could try again to use the wizard to send the validation email, but you can’t, it does nothing, and provides not hint that it’s not doing what you think.

The only way to recover is to guess at some url (otherwise, you get only the wizard page), find your way to the login dialog, and then do the “forgot password” sequence.

The likelihood of having your email configuration broken when you first visit the site is fairly high, so it’s not hard to get caught in this trap.

I haven’t noticed this until recently, so I think that the wizard used to send multiple attempts. I’m installing on stable now to see if it’s my imagination.

Edit: I think that Discourse does not send the activation email on subsequent create-the-admin-account, but the “resend activation email” button is there, so people should know to click that.

---

<div class="post-metadata">

### Author: ![jonathon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathon/32/265865_2.png) [@jonathon](https://meta.discourse.org/u/jonathon)
#### Post date: [January 3, 2018, 4:44pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/2 "2018-01-03T16:44:12Z")

</div>

> [@pfaffman](#):
>
> I had a topic about this once before, but I can’t find it.

This one?

[https://meta.discourse.org/t/un-activated-admin-account-gets-no-email-from-wizard/75743](https://meta.discourse.org/t/un-activated-admin-account-gets-no-email-from-wizard/75743)

_(Discourse tip: see your created topics under [Profile - pfaffman - Discourse Meta](https://meta.discourse.org/u/pfaffman/activity/topics))_

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 3, 2018, 5:02pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/3 "2018-01-03T17:02:45Z")

</div>

> [@jonathon](#):
>
> (Discourse tip: see your created topics under Profile - pfaffman - Discourse Meta)

Yeah. I tried searching @pfaffman, but checking my profile might have helped. 🙂

> [@codinghorror](#):
>
> Is it the obvious thing? If so why is this the first I have ever heard of it?

And I still don’t know, but now twice in 25 days I’ve had new users with this problem.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 3, 2018, 10:29pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/4 "2018-01-03T22:29:22Z")

</div>

Doesn’t happen on our hosting because email is pre-configured 😃

What can I say? Email is the hardest problem in computer science. I guess you could put some text in there “by the way, stop f\*\*king up your email config?”

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 4, 2018, 12:55am UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/5 "2018-01-04T00:55:32Z")

</div>

> [@pfaffman](#):
>
> If you re-visit the site, the Wizard appears because they never validated the account. It would seem like they could try again to use the wizard to send the validation email, but you can’t, it does nothing, and provides not hint that it’s not doing what you think.

I accept that this is less than ideal, @gerhard why don’t you have a look at the code and see what can be done to re-send on this step?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 20, 2018, 11:17pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/7 "2018-08-20T23:17:31Z")

</div>

Was there any resolution on this @gerhard?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 21, 2018, 5:22pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/8 "2018-08-21T17:22:57Z")

</div>

> [@pfaffman](#):
>
> I think that Discourse does not send the activation email on subsequent create-the-admin-account, but the “resend activation email” button is there, so people should know to click that.

That’s exactly what happened. The first activation email will either by sent at a later time when Sidekiq tries again or it won’t be sent at all if it already tried too often. Clicking the “Resend” button would have been enough, but I guess that’s too much to ask for. 😉

I changed it so that the activation email is sent again when the admin re-registers. No need for clicking a button anymore.

[https://github.com/discourse/discourse/commit/17dc8f2490bf119fe8ceb9553ada666249a7dc57](https://github.com/discourse/discourse/commit/17dc8f2490bf119fe8ceb9553ada666249a7dc57)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 21, 2018, 5:54pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/9 "2018-08-21T17:54:09Z")

</div>

> [@gerhard](#):
>
> Clicking the “Resend” button would have been enough, but I guess that’s too much to ask for. 😉

I think that the problem is that there isn’t a resend button on the wizard.

> [@gerhard](#):
>
> I changed it so that the activation email is sent again when the admin re-registers. No need for clicking a button anymore.

Hooray! 🎉

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 21, 2018, 7:48pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/10 "2018-08-21T19:48:26Z")

</div>

> [@pfaffman](#):
>
> I think that the problem is that there isn’t a resend button on the wizard.

Oh, but there is! Maybe the button should be blue?

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/5/854357f651ab9face3041214e1eedc73e237e874.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 21, 2018, 7:55pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/11 "2018-08-21T19:55:48Z")

</div>

Sure, good idea, let’s make that button blue / default!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 21, 2018, 7:57pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/12 "2018-08-21T19:57:53Z")

</div>

> [@gerhard](#):
>
> Oh, but there is!

Oh. Uh. Well. . . that’s harder to explain. . . 😉

I think that what’s confusing is that it says “We sent an activation. . .” which implies that it got sent just before that message was displayed, when really, it means “We sent an activation . . . when you tried before and your mail system was broken, so you really need to click the resend button RIGHT NOW.”

> [@gerhard](#):
>
> Clicking the “Resend” button would have been enough, but I guess that’s too much to ask for. 😉

Looks like you’re right. 😉

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 22, 2018, 8:02pm UTC](https://meta.discourse.org/t/wizard-will-not-send-validation-email-more-than-once/77175/13 "2018-08-22T20:02:03Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
