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
5a57a570
Commit
5a57a570
authored
4 years ago
by
Kayz
Committed by
Rob Swindell
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add configurable options for email validation (length and valid chars)
parent
4a824f52
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/emailval.js
+8
-5
8 additions, 5 deletions
exec/emailval.js
with
8 additions
and
5 deletions
exec/emailval.js
+
8
−
5
View file @
5a57a570
// $Id: emailval.js,v 1.7 2019/07/15 04:41:35 rswindell Exp $
/*******************************************************************************
Originally based on:
FILE: emailval.js v0.2
...
...
@@ -21,7 +21,7 @@ STEP 2:
Edit ctrl/modopts.ini in a text editor and edit the following values in the
[emailval] section (create if it necessary) to match your pre-validation and
post-validation security levels.
level_before_validation (default: 50)
level_before_validation (default: 50)
level_after_validation (default: 60)
flags1_after_validation (default: no change)
flags2_after_validation (default: no change)
...
...
@@ -31,6 +31,8 @@ post-validation security levels.
restrictions_after_validation (default: no change)
expiration_after_validation (default: false)
expiration_days_after_validation (default: no change)
valid_chars=ACDEFHJKLMNPQRTUVWXY23456789!@#$%&*
code_length=16
Note: the flags, exemptions, and restrictions .ini values support 'A' through
'Z' with the optional '+' (add) and '-' (remove) modifiers.
...
...
@@ -65,9 +67,10 @@ if(options.level_after_validation === undefined)
options
.
level_after_validation
=
60
;
//other constants, shouldn't need changing.
var
cValChars
=
'
ACDEFHJKLMNPQRTUVWXY23456789!@#$%&*
'
;
var
cValChars
=
options
.
valid_chars
!==
undefined
?
options
.
valid_chars
:
'
ACDEFHJKLMNPQRTUVWXY23456789!@#$%&*
'
;
var
cPrevalText
=
"
telvalcode
"
;
var
cValCodeLen
=
16
;
var
cValCodeLen
=
options
.
code_length
!==
undefined
?
options
.
code_length
:
16
;
//include SBBS Definition constants
require
(
"
sbbsdefs.js
"
,
'
NET_NONE
'
);
...
...
@@ -214,4 +217,4 @@ function CheckValidation() {
}
}
}
CheckValidation
();
\ No newline at end of file
CheckValidation
();
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