Skip to content

can't reset password #163

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

Closed
umutnacak opened this issue Apr 17, 2014 · 2 comments
Closed

can't reset password #163

umutnacak opened this issue Apr 17, 2014 · 2 comments

Comments

@umutnacak
Copy link

When I try to change my password following the password reset link I get the following error:

ErrorException
strtotime() expects parameter 1 to be string, array given

/Applications/MAMP/htdocs/learning/vendor/laravel/framework/src/Illuminate/Auth/Reminders/DatabaseReminderRepository.php
* Determine if the reminder has expired.
*
* @param array $reminder
* @return bool
*/
protected function reminderExpired($reminder)
{
$createdPlusHour = strtotime($reminder['created_at']) + $this->expires;

    return $createdPlusHour < $this->getCurrentTime();

document in the password_reminders collection:

{
_id: ObjectId("534f9b468e798f997fb7acd9"),
email: "[email protected]",
token: "c41c7392be9b1f96cabb7421098eedb8ef82f2f6",
created_at: {
date: "2014-04-17 09:13:42",
timezone_type: 3,
timezone: "UTC"
}
}

If I edit like this:
created_at: "2014-04-17 09:13:42"
it works.

Best Regards,
Umut Nacak

@davetosh
Copy link
Contributor

Adding the following service provider to app/config/app.php will sort this issue. 'Jenssegers\Mongodb\Auth\ReminderServiceProvider' - https://github.com/LearningLocker/LearningLocker/wiki/Installing

@umutnacak
Copy link
Author

sorry my bad.

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

No branches or pull requests

2 participants