Fix a few minor error conditions
This commit is contained in:
parent
ce44bfea9e
commit
1923af16a9
4 changed files with 9 additions and 4 deletions
|
|
@ -228,6 +228,11 @@ module.exports = {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!$util.isValidUserName(name)) {
|
||||
callback(`Invalid username "${name}"`);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Passwords are capped at 100 characters to prevent a potential
|
||||
denial of service vector through causing the server to hash
|
||||
ridiculously long strings.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue