-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
User must implement Remindable interface. #37
Comments
Could you show some code? You can also email it if you prefer. |
Here is the model in question
I have an Alias set up for MongoModel. Its the standard User model that is shipped with laravel really |
I added the interfaces to the user model I use in the tests, but I did not get the error. |
How odd, I'll have a dig round and see if it could be anything else. Thanks for looking |
In the Auth config file should I be using 'Eloquent' or 'database' as the driver? If I use Eloquent I get a different error, which is:
I think this is because the date is now an array which it is not expecting. |
For authentication I am using Edit: I haven't tested password resets yet |
The problem with using the Eloquent driver is its throws the error I wrote about above. |
I've added a question on Stack Overflow to see if I can get to the bottom of the issue. Once I do I'll post back here |
I will try it out in a laravel application to see if I get the same error. |
Running into this issue here as well, digging in unless someone has found a solution... |
What features are you guys using from Auth? I created a user and logged in using |
The error I am experiencing is with |
I'm not getting this error. This is the header of my user model:
Everything else remains unchanged. The auth driver is set (by default) to 'eloquent'. |
Are you using the standard password_reminders table (in this case a collection)? My issues are in the Ugly core hack, change line 110: |
Oh, I was looking at line 216. I don't really know how to fix the issue with the date object. @philipzaengle, could you try this for me:
|
Never mind, the toString method of the MongoDate class does not return a nice date string. |
I fixed the password reminder issue. Check out the Auth section in the readme: https://github.com/jenssegers/Laravel-MongoDB#auth |
I am using the inbuilt User auth in Laravel and when storing a password reset via Password::reset I am getting the following error "User must implement Remindable interface." Even though I am implementing that interface.
It was working with MySql, so it must be something I have done when transferring to use your package.
Have you run into this problem before?
The text was updated successfully, but these errors were encountered: