Skip to content

Commit 43186a8

Browse files
authored
Merge pull request #67 from 247arjun/patch-1
Check for password length between 12-16 characters
2 parents 7257861 + d4d9954 commit 43186a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

+5
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ class Beelzebub {
149149
message: 'Password must be at least 8 characters long',
150150
infuriationLevel: InfuriationLevel.Low,
151151
},
152+
{
153+
passwordIsInvalid: password => ( password.length < 12 || password.length > 16),
154+
message: 'Password must be 12-16 characters long',
155+
infuriationLevel: InfuriationLevel.Low,
156+
},
152157
{
153158
passwordIsInvalid: password => password.match(/\d+/) === null,
154159
message: 'Password must contain at least 1 number',

0 commit comments

Comments
 (0)