Skip to content

Commit 1548e30

Browse files
brianteemanQuyTon
andauthored
[5.2] Password Strength Symbols (#43484)
* [5.2] Password Strength Symbols The script used to check for symbols in a password contains a limited set of symbols. This PR updates the script to use the list of special characters provided by [OWASP](https://owasp.org/www-community/password-special-characters). They are the punctuation characters that are present on standard US keyboard. * final * cs Co-authored-by: Quy <[email protected]>
1 parent c171626 commit 1548e30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/media_source/system/js/fields/passwordstrength.es6.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*
88
* Copyright (c) 2014 Thomas Kjærgaard
99
*
10+
* ADAPTED BY: Joomla for use in the Joomla! CMS
11+
*
1012
* Permission is hereby granted, free of charge, to any person obtaining a copy
1113
* of this software and associated documentation files (the "Software"), to deal
1214
* in the Software without restriction, including without limitation the rights
@@ -50,7 +52,7 @@ class PasswordStrength {
5052
// eslint-disable-next-line no-useless-escape
5153
score += this.constructor.calc(
5254
value,
53-
/[@$!#?=;:*\-_%&()`´]/g,
55+
/[@$!#?=;:*\-_%&()`´+[\]{}'"\\|,.<>/~^]/g,
5456
this.special,
5557
mods,
5658
);

0 commit comments

Comments
 (0)