"Remember me" uses a wrong model

Issue #5 new
Teemu Lahti created an issue

I have a custom WordPressUser model that extends \Hampel\WordPress\Auth\Models\WordPressUser and adds a few relations (like Wordpress user_meta table and some custom relations). I have defined that model in the model field in auth configuration and it works fine everywhere, except when using "remember me". When using "remember me", the user is logged in using \Hampel\WordPress\Auth\Models\WordPressUser instead of my custom WordPressUser modell. This causes an error in some of my route filters that try to access relations defined in the custom model, but not in \Hampel\WordPress\Auth\Models\WordPressUser.

Comments (0)

  1. Log in to comment