Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

会員のログインIDをメールアドレス以外に拡張したい #4617

Closed
chihiro-adachi opened this issue Jul 8, 2020 · 1 comment
Labels
enhancement 機能追加
Milestone

Comments

@chihiro-adachi
Copy link
Contributor

概要(Overview)

ログインIDをメールアドレス以外に変更するには、現状コアのファイルを直接カスタマイズするしか方法がなく、プラグイン等からは拡張できない。

カスタマイズする際は以下の手順で可能だが、プラグイン等から拡張する口は用意されていない。

  1. Eccube\Security\Core\User\CustomerProvider:: loadUserByUsernameの修正
  2. Eccube\Entity\Customer::getUserNameの修正

環境 (environment)

  • EC-CUBE: 4.0.x
  • PHP: 7.x.x
  • DB:
    • PostgreSQL x.x.x
    • MySQL x.x.x

関連情報 (Ref)

@chihiro-adachi
Copy link
Contributor Author

Symfonyのdecoratesで、Member/CustomerProvider::loadUserByUsernameあたりを拡張してあげればカスタマイズ可能そうです。
https://qiita.com/chihiro-adachi/items/b3bb70e6abbc0f824965

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 機能追加
Projects
None yet
Development

No branches or pull requests

1 participant