Skip to content
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

Custom Validator::replacer #2

Merged
merged 2 commits into from Apr 19, 2018
Merged

Custom Validator::replacer #2

merged 2 commits into from Apr 19, 2018

Conversation

kanalumaddela
Copy link
Contributor

Nothing big, just a simple str_replace on the validation error message to show the minimum amount of times set when using pwned.

Example:

Your password is insufficiently secure as it has been found at least :min times in known password breaches, please chose a new one

It'd be cooler if you could pass along the exact count, but as far as I know, you can't pass that by any logical way. The only (very bad) way I can think of would be session flashing/storing it, but that is a very bad way.

@valorin
Copy link
Owner

valorin commented Apr 19, 2018

Cool, thanks. 👍

@valorin valorin merged commit b2aece6 into valorin:master Apr 19, 2018
@valorin
Copy link
Owner

valorin commented Apr 19, 2018

Just tagged 1.1.0 with this. 😀

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.

None yet

2 participants