Skip to content

Fix Convert UTCDateTime to a date string when reset password #1903

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

Merged
merged 1 commit into from
Jan 7, 2020
Merged

Fix Convert UTCDateTime to a date string when reset password #1903

merged 1 commit into from
Jan 7, 2020

Conversation

azizramdan
Copy link
Contributor

Fix request reset password when data/token in password_resets collection exist.
If request reset password for 2nd time and so on, when users failed to reset password before (token in database still exist) it will return error "DateTime::__construct(): Failed to parse time string..." in Carbon.

So I create method tokenRecentlyCreated in DatabaseTokenRepository to convert UTCDateTime to a date string and return converted value to laravel's default method

Fix request reset password when data in password_resets collection exist
@azizramdan azizramdan changed the title Fix Convert UTCDateTime to a date string Fix Convert UTCDateTime to a date string when reset password Jan 7, 2020
@jenssegers jenssegers merged commit 7c70434 into mongodb:master Jan 7, 2020
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this pull request Sep 2, 2024
Fix Convert UTCDateTime to a date string when reset password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants