Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
91b98519
Commit
91b98519
authored
5 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Clean-up for case for short/empty passwords.
Check for overly-long passwords too.
parent
960ac1c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/chksetup.js
+11
-5
11 additions, 5 deletions
exec/chksetup.js
with
11 additions
and
5 deletions
exec/chksetup.js
+
11
−
5
View file @
91b98519
...
...
@@ -98,19 +98,25 @@ var tests = {
continue
;
if
(
usr
.
settings
&
(
USER_DELETED
|
USER_INACTIVE
))
continue
;
if
(
!
(
usr
.
security
.
restrictions
&
UFLAG_G
)
&&
usr
.
security
.
password
==
''
)
{
output
.
push
(
format
(
"
User #%-4u has no password
"
,
usr
.
number
));
if
(
usr
.
security
.
password
==
''
)
{
if
(
!
(
usr
.
security
.
restrictions
&
UFLAG_G
))
output
.
push
(
format
(
"
User #%-4u has no password
"
,
usr
.
number
));
continue
;
}
if
(
!
password_list
[
usr
.
security
.
password
])
password_list
[
usr
.
security
.
password
]
=
[];
password_list
[
usr
.
security
.
password
].
push
(
u
);
if
(
system
.
min_password_length
&&
usr
.
security
.
password
.
length
<
system
.
min_password_length
)
output
.
push
(
format
(
"
User #-4u has a password length (%u) < the minimum: %u
"
if
(
usr
.
security
.
password
.
length
<
system
.
min_password_length
)
output
.
push
(
format
(
"
User #%-4u has a password length (%u) < the minimum: %u
"
,
usr
.
number
,
usr
.
security
.
password
.
length
,
system
.
min_password_length
));
else
if
(
system
.
max_password_length
&&
usr
.
security
.
password
.
length
>
system
.
max_password_length
)
output
.
push
(
format
(
"
User #%-4u has a password length (%u) > the maximum: %u
"
,
usr
.
number
,
usr
.
security
.
password
.
length
,
system
.
max_password_length
));
if
(
!
system
.
trashcan
(
"
password
"
,
usr
.
security
.
password
))
continue
;
output
.
push
(
format
(
"
User #%-4u has a disallowed password%s
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment