Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
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
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/validate_password.inc.php
View file @
2c49c56e
...
...
@@ -53,10 +53,11 @@ 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
)
{
...
...
@@ -122,7 +123,7 @@ class validate_password {
$lng_text
=
str_replace
(
'{chars}'
,
$min_password_length
,
$lng_text
);
}
if
(
!
$lng_text
)
$lng_text
=
'weak_password_txt'
;
// always return a string, even if language is missing - otherwise validator is NOT MATCHING!
if
(
strlen
(
$field_value
)
<
$min_password_length
)
return
$lng_text
;
if
(
$this
->
_get_password_strength
(
$field_value
)
<
$min_password_strength
)
return
$lng_text
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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