Auth user from Laravel to Wordpress Database

前端 未结 1 1573
独厮守ぢ
独厮守ぢ 2021-01-12 19:33

I have a existing site in wordpress. User register only by web (wordpress). How to authenticate user from Laravel to the wordpress DB.

相关标签:
1条回答
  • 2021-01-12 19:58

    There are a lot of ways to do this. You could:

    • Use a custom authentication driver on your Laravel app to use WordPress database. Hampel's package does this.
    • Use a custom authentication provider to authenticate WordPress users. Laravel WP User package can do this, and it also support REST API.
    • Override Laravel's hashing to make WordPress compatible password hashes using Laravel WP Password package. You can read more about this here.
    • Replace WordPress's built-in authentication.
    • Use Auth0.

    There are probably still more ways to do this.

    0 讨论(0)
提交回复
热议问题