Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Zvonimir
ISPConfig 3
Commits
2c49c56e
Commit
2c49c56e
authored
Aug 01, 2014
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue in password strength check.
parent
0cba4efb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
interface/lib/classes/validate_password.inc.php
interface/lib/classes/validate_password.inc.php
+3
-2
No files found.
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
Markdown
is supported
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