mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-04 00:41:56 +02:00
* Fix 'newMark' -> 'newIndicator' in message list
* Better Telnet trace filter similar to SSH
This commit is contained in:
parent
e9836e18db
commit
4988559569
6 changed files with 38 additions and 7 deletions
|
@ -33,6 +33,12 @@ function validateApplicationData(formData, cb) {
|
|||
return;
|
||||
}
|
||||
|
||||
var invalidNames = Config.users.newUserNames + Config.users.badUserNames;
|
||||
if(invalidNames.indexOf(formData.value.username.toLowerCase()) > -1) {
|
||||
cb('Handle is blacklisted!', [ 1 ] );
|
||||
return;
|
||||
}
|
||||
|
||||
if(isNaN(Date.parse(formData.value.birthdate))) {
|
||||
cb('Invalid birthdate!', [ 3 ] );
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue