# How to create new user with verified email in development mode?

**URL:** https://meta.discourse.org/t/how-to-create-new-user-with-verified-email-in-development-mode/116617
**Category:** Development
**Created:** [1 במאי,‏ 2019,‏ 8:37pm UTC](https://meta.discourse.org/t/how-to-create-new-user-with-verified-email-in-development-mode/116617 "2019-05-01T20:37:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Lotts](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@Lotts](https://meta.discourse.org/u/Lotts)
#### Post date: [1 במאי,‏ 2019,‏ 8:37pm UTC](https://meta.discourse.org/t/how-to-create-new-user-with-verified-email-in-development-mode/116617/1 "2019-05-01T20:37:59Z")

</div>

Hi, I’m new to Discourse and I already searched for I’m looking for.  
I’m going to make some plugins and I need to create users to test it. I’m trying to creating users with temporary emails, but Discourse never send a email confirmation. It’s happening due to localhost? I don’t know.  
I have followed this [Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727) and my Discourse forum is running perfectly. I tried to create a user with `RAILS_ENV=development bundle exec rake admin:create`, but I can’t login since I have to confirm the email. How can I create a user with verified email? Thank you.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [1 במאי,‏ 2019,‏ 9:04pm UTC](https://meta.discourse.org/t/how-to-create-new-user-with-verified-email-in-development-mode/116617/2 "2019-05-01T21:04:51Z")

</div>

Did you run mailcatcher as specified in that topic?

When you do, it’ll receive email sent to it by your development install and you can view it in a web browser.

```plaintext
→ mailcatcher --http-ip 0.0.0.0
Starting MailCatcher
==> smtp://127.0.0.1:1025
/home/michael/.rvm/gems/ruby-2.6.2@discourse/gems/thin-1.5.1/lib/thin/server.rb:104: warning: constant ::Fixnum is deprecated
==> http://0.0.0.0:1080/
*** MailCatcher runs as a daemon by default. Go to the web interface to quit.

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/a/2a4decf8fad5942412b27a2e1403cd564162a495.png)

---

<div class="post-metadata">

### Author: ![Lotts](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@Lotts](https://meta.discourse.org/u/Lotts)
#### Post date: [1 במאי,‏ 2019,‏ 9:11pm UTC](https://meta.discourse.org/t/how-to-create-new-user-with-verified-email-in-development-mode/116617/3 "2019-05-01T21:11:42Z")

</div>

I didn’t know about it (the 0.0.0:1080 thing). Thank you for your quick answer.  
Is “bundle exec sidekiq” necessary? What is this for?

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [1 במאי,‏ 2019,‏ 10:17pm UTC](https://meta.discourse.org/t/how-to-create-new-user-with-verified-email-in-development-mode/116617/4 "2019-05-01T22:17:02Z")

</div>

Yep. It is for running background jobs, like sending email.

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [2 במאי,‏ 2019,‏ 8:59am UTC](https://meta.discourse.org/t/how-to-create-new-user-with-verified-email-in-development-mode/116617/5 "2019-05-02T08:59:18Z")

</div>

You can also login as any user in development mode using the following path:

`/session/:username/become`

So if you want to log in to a user with “test1” as a username your URL will look something like:

`http://localhost:3000/session/test1/become`
