fix password length check to match message
This commit is contained in:
parent
921f29c004
commit
c03fdf5a15
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ promptSecret msg cont = pairPage $ do
|
|||
secretProblem :: Secret -> Maybe Text
|
||||
secretProblem s
|
||||
| B.null s = Just "The secret phrase cannot be left empty. (Remember that punctuation and white space is ignored.)"
|
||||
| B.length s < 7 = Just "Enter a longer secret phrase, at least 6 characters, but really, a phrase is best! This is not a password you'll need to enter every day."
|
||||
| B.length s < 6 = Just "Enter a longer secret phrase, at least 6 characters, but really, a phrase is best! This is not a password you'll need to enter every day."
|
||||
| s == toSecret sampleQuote = Just "Speaking of foolishness, don't paste in the example I gave. Enter a different phrase, please!"
|
||||
| otherwise = Nothing
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue