Initialize global database tables
This commit is contained in:
parent
aff737b3a1
commit
c213dd1374
2 changed files with 6 additions and 2 deletions
|
|
@ -134,7 +134,7 @@ function handleRegister(req, res) {
|
|||
|
||||
password = password.substring(0, 100);
|
||||
|
||||
if (!$util.isValidEmail(email)) {
|
||||
if (email.length > 0 && !$util.isValidEmail(email)) {
|
||||
sendJade(res, 'register', {
|
||||
registerError: 'Invalid email address'
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue