Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

テスト/デバッグ時のユーザアクティベーション #53

Open
pddg opened this issue Dec 31, 2018 · 1 comment
Open

テスト/デバッグ時のユーザアクティベーション #53

pddg opened this issue Dec 31, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@pddg
Copy link
Member

pddg commented Dec 31, 2018

デフォルトではemailの送信は無効になっているが,ユーザアクティベーションのためにはトークンが必要になる.無効になっているとき,django.core.mail.backends.console.EmailBackend によって標準出力へメールの内容が出力されるようになっているが,これはテストする,ローカルで検証する用途においてかなり使いづらい.

対処法

ローカルでの開発に限って以下のどちらかを検討している

  • Tokenを生成・検証する部分をオーバーライドして,決まった値などでアクティベーションできるようにする
    • メリット:テストの自動化が容易.ユーザのアクティベーションもテスト出来る.
    • デメリット:フロントエンドのデバッグをするとき,結局自分でそのアクティベーションURLにアクセスしないといけない
  • そもそもデフォルトでアクティブになるようにする
    • メリット:わかりやすい.簡単.
    • デメリット:ユーザのアクティベーションをテスト出来ない
@pddg pddg added enhancement New feature or request help wanted Extra attention is needed labels Dec 31, 2018
@pddg pddg added this to the FirstRelease milestone Dec 31, 2018
@pddg pddg self-assigned this Dec 31, 2018
@pddg pddg modified the milestones: FirstRelease, Improvement Jan 4, 2019
@taxio
Copy link
Member

taxio commented Feb 28, 2019

検証用のデータ作成コマンドができたため,今の所フロントエンドはこのアカウント作成フローに悩まされてはいない.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants