Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Synchronet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
139
Issues
139
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main
Synchronet
Compare Revisions
faadb5b9bdc17be17fae8aee311f33eea9ef0c3d...540f62d61c7108d3b22d629bc559abeffc5f18e3
Source
540f62d61c7108d3b22d629bc559abeffc5f18e3
Select Git revision
...
Target
faadb5b9bdc17be17fae8aee311f33eea9ef0c3d
Select Git revision
Compare
Commits (1)
If minimum password length is > 8, use that length for random password
· 540f62d6
Rob Swindell
authored
Dec 20, 2020
length... for WitNik.
540f62d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/logon.cpp
src/sbbs3/logon.cpp
+1
-1
src/sbbs3/newuser.cpp
src/sbbs3/newuser.cpp
+1
-1
No files found.
src/sbbs3/logon.cpp
View file @
540f62d6
...
...
@@ -242,7 +242,7 @@ bool sbbs_t::logon()
bprintf
(
text
[
TimeToChangePw
],
cfg
.
sys_pwdays
);
c
=
0
;
while
(
c
<
RAND_PASS_LEN
)
{
/* Create random password */
while
(
c
<
max
(
RAND_PASS_LEN
,
cfg
.
min_pwlen
)
)
{
/* Create random password */
str
[
c
]
=
sbbs_random
(
43
)
+
'0'
;
if
(
IS_ALPHANUMERIC
(
str
[
c
]))
c
++
;
...
...
src/sbbs3/newuser.cpp
View file @
540f62d6
...
...
@@ -381,7 +381,7 @@ BOOL sbbs_t::newuser()
}
else
{
c
=
0
;
while
(
c
<
RAND_PASS_LEN
)
{
/* Create random password */
while
(
c
<
max
(
RAND_PASS_LEN
,
cfg
.
min_pwlen
)
)
{
/* Create random password */
useron
.
pass
[
c
]
=
sbbs_random
(
43
)
+
'0'
;
if
(
IS_ALPHANUMERIC
(
useron
.
pass
[
c
]))
c
++
;
...
...