# Created a user from command line. Supposedly active, but isn't?

**URL:** https://meta.discourse.org/t/created-a-user-from-command-line-supposedly-active-but-isnt/394837
**Category:** Support
**Tags:** dev-install, rake-task
**Created:** [January 31, 2026, 11:32am UTC](https://meta.discourse.org/t/created-a-user-from-command-line-supposedly-active-but-isnt/394837 "2026-01-31T11:32:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [January 31, 2026, 11:32am UTC](https://meta.discourse.org/t/created-a-user-from-command-line-supposedly-active-but-isnt/394837/1 "2026-01-31T11:32:38Z")

</div>

```plaintext
bundle exec rake admin:create
Email: canapin3@gmail.com
Password:  
Repeat password:  

Ensuring account is active!

Account created successfully with username user3
Do you want to grant Admin privileges to this account? (Y/n) n
discourse@a9ebdc1b7a27:/workspace/discourse$

```

The admin interface shows the user is active:

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/2/4/b249ca6e1bc1e47a607b75d501e87f3d9fbe9f97.png)

But when trying to log in with the created user, it shows:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/5/9/0593abfa9d5375af641ae325ceea0b9cba76d14d.jpeg)

The workaround was to deactivate the user from the admin, then re-activate it.

Is it a bug, or supposed to be this way for some reason?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [January 31, 2026, 11:33am UTC](https://meta.discourse.org/t/created-a-user-from-command-line-supposedly-active-but-isnt/394837/2 "2026-01-31T11:33:35Z")

</div>

You can also delete the related EmailToken instance from the rails console manually.
