アクティベーションメールをバイパスできますか

API を使用して activate: true でユーザーを作成しましたが、管理コンソールで確認するとユーザーはアクティブ化されている表示になります。

しかし、そのユーザーでログインしようとすると、以下のようなエラーが表示されます。

まだログインできません。以前、user@email.com 宛にアクティブ化メールを送信しました。アカウントをアクティブ化するには、そのメールに記載された手順に従ってください。

なぜこのような表示になるのでしょうか?これを回避したいのですが、何か設定で無視することはできますか?

これは単に、古いフォーラムの既存ユーザーを新しい Discourse フォーラムに移行させたいだけなので、彼らにアクティブ化を促すのは不要な手間だと考えています。新規登録したばかりのユーザーに対しては、その仕組みがなぜ必要なのかはよく理解しています。

現時点ではテスト目的で 1 人のユーザーを作成しているだけですが、将来的には 5000 人のユーザーを作成する予定です。設定が間違っている可能性もあり、やり直す必要があるかもしれません。そのため、本番運用を開始するまでは、いかなるメールも送信されないようにしたいのですが、メール送信を無効化することはできますか?

You might try to deactivate and then activate again. I’ve seen before that creating and activated user with the API doesn’t work.

Once a user is deactivated, they’ll have to reactivate their account via email. So this would still require an “effort” on their part.

When users from an old forum moved to our current forum, everything was via the invite email and no one complained. Most filled out their profiles except a few. The “hardest” part was getting them to do their profiles/bios. I think it would easier on you to just let your users go through the steps that are already set up - click on email link, set up their account… done. Just remind them they’ll probably have to change their username from the default that Discourse assigns (everything before the @ in their email address).

Here’s how I did it in Feb 2018:

ありがとうございます、動作しました。create user で activate を true に設定すると、メールは送信されないものの、正しくアクティベートもされないようです。そのため、初回ログイン時にアクティベーションメールを送ったと表示されますが、実際には送られていません。ただし、私の理解が間違っている可能性もあります。

しかし、一度無効化してから有効化すれば、アクティベートなしで初回ログインが可能になり、メールも送信されません。これが私が望んでいた動作です。