Skip to content

Updates PasswordBroker to work with Laravel 5.4 #1095

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
wants to merge 1 commit into from

Conversation

wuori
Copy link
Contributor

@wuori wuori commented Jan 31, 2017

Bad code alert:

This code is a shim until new dot release is available. As reset-password isn't used as often as other functions, the version check's added process should be negligible, but it still isn't the best way, obviously.

TODO: Remove check for next dot release (non-compatible with Laravel < 5.4).

PR Info:

Laravel 5.4 implements Hasher into DatabaseTokenRepository and therefore requires this parameter to be passed to it from PasswordBrokerManager.php in laravel-mongodb.

This PR adds a check to see if we're on 5.4+ and passes hasher if so, allowing it to remain compatible with prior versions of Laravel.

@jenssegers
Copy link
Contributor

Can you use this to compare the version? http://php.net/manual/en/function.version-compare.php

@wuori
Copy link
Contributor Author

wuori commented Feb 17, 2017

Sure I'll try to get that done soon, thanks!

@wuori
Copy link
Contributor Author

wuori commented Mar 24, 2017

@jenssegers Doesn't seem like this is needed any longer?

@divine
Copy link
Contributor

divine commented Jan 20, 2020

@jenssegers Doesn't seem like this is needed any longer?

Should be closed, merged in #1162

Thank you for your contribution.

cc @Smolevich

@Smolevich Smolevich closed this Jan 20, 2020
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

Successfully merging this pull request may close these issues.

4 participants