Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
2c49c56e
Commit
2c49c56e
authored
Aug 01, 2014
by
Till Brehm
Browse files
Fixed issue in password strength check.
parent
0cba4efb
Changes
1
Show whitespace changes
Inline
Side-by-side
interface/lib/classes/validate_password.inc.php
View file @
2c49c56e
...
...
@@ -53,11 +53,12 @@ class validate_password {
$different
+=
1
;
}
if
(
preg_match
(
'/[`~!@#$%^&*()_+|\\=-
[
]}{\';:\/?.>,<" ]/'
,
$password
))
{
if
(
preg_match
(
'/[`~!@#$%^&*()_+|\\=-
\[\
]}{\';:\/?.>,<" ]/'
,
$password
))
{
$points
+=
1
;
$different
+=
1
;
}
if
(
$points
==
0
||
$different
<
3
)
{
if
(
$length
>=
5
&&
$length
<=
6
)
{
return
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment