Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Feature: password too long #63

Closed
sandro-heitz opened this issue Jun 10, 2018 · 7 comments · May be fixed by #68
Closed

Feature: password too long #63

sandro-heitz opened this issue Jun 10, 2018 · 7 comments · May be fixed by #68

Comments

@sandro-heitz
Copy link

Hi, it might be useful to check if a password is too long.

I downloaded your project and implemented it locally. The logic follows the tooShort pattern. But there is one important difference. Too long is only tested, if the maxLengh is greater than 0 and the default value is 0. This prevents breaking of existing applications.

By the way: nice work!

@mmw
Copy link
Owner

mmw commented Jun 11, 2018

I never implemented something like this because generally we dont want to encourage limiting password length as a pattern to follow. What is the use case for this feature? The only thing I could think of is if you are implementing with a legacy system that imposed password length restrictions.

I suppose having this does make it feature complete. I'll try to find some time to implement. Feel free to raise a PR if you have the time/interest to do this.

Thanks for using the tool, glad you found it useful 👍

@sandro-heitz
Copy link
Author

sandro-heitz commented Jun 11, 2018 via email

@mmw
Copy link
Owner

mmw commented Jun 11, 2018

Nope that makes sense and I didnt think of that case, thanks for the explanation

@sandro-heitz
Copy link
Author

sandro-heitz commented Jun 11, 2018 via email

@mmw
Copy link
Owner

mmw commented Oct 30, 2018

@sandro-heitz I had some time to implement a fix here. Wondering why wouldnt you just pass maxLength through inputProps to achieve the desired result?

@sandro-heitz
Copy link
Author

I will have a look in a few days. I'm a bit busy at the moment.

@sandro-heitz
Copy link
Author

maxLengh is an adequate solution. Thank you ...

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

Successfully merging a pull request may close this issue.

2 participants