# Resend Activation Email - 404 Error

**URL:** <https://meta.discourse.org/t/resend-activation-email-404-error/279428>\
**Category:** Bug\
**Created:** [September 18, 2023, 7:27pm UTC](https://meta.discourse.org/t/resend-activation-email-404-error/279428 "2023-09-18T19:27:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [September 19, 2023, 10:06pm UTC](https://meta.discourse.org/t/resend-activation-email-404-error/279428/2 "2023-09-19T22:06:14Z")

</div>

Testing this on my local dev site, the problem seems to be that neither the `username` or `email` parameters get set for the `POST` request that’s made to `/u/action/send_activation_email` when the request is made after a user who has not clicked the link in the activation email attempts to login with a username/password:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/a/e/7ae95026bedcfddb97c0121075a2cb16214a6389.png)

If, instead, the user clicks the Resend Activation Email button from the account-created page that’s displayed immediately after registering an account, the `username` parameter is set for the request. For reference, the button that is working is this one:

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/c/e/3ce0fce23b7c03bb2c309fc99eebf91c8c7c0e69.png)

My guess about what’s happening is that for the request that _is_ working, is that the parameters for the `POST` request are being set based off the values the user enters when they complete the signup form.

The `404` error is being triggered here:

> <https://github.com/discourse/discourse/blob/main/app/controllers/users_controller.rb#L1175-L1177>

---

_[View the full topic](https://meta.discourse.org/t/resend-activation-email-404-error/279428)._
