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

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:

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

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?

2 לייקים

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