Browse Source

Merge pull request #42 from JordanMajd/jmajd-patch

[FIX] - Adds missing semicolon, fixes variable assignment to non global.
JeongHoon Byun (aka Outsider) 9 years ago
parent
commit
f4050672b1
2 changed files with 3 additions and 3 deletions
  1. 1 1
      app.js
  2. 2 2
      routes/index.js

+ 1 - 1
app.js

@@ -4,7 +4,7 @@ var express = require('express'),
     logger = require('morgan'),
     cookieParser = require('cookie-parser'),
     bodyParser = require('body-parser'),
-    config = require('./config');
+    config = require('./config'),
     i18n = require("i18n");
 
 var routes = require('./routes/index');

+ 2 - 2
routes/index.js

@@ -39,9 +39,9 @@ router.post('/invite', function(req, res) {
             });
             return;
           } else if (error === 'invalid_email') {
-            error = 'The email you entered is an invalid email.'
+            error = 'The email you entered is an invalid email.';
           } else if (error === 'invalid_auth') {
-            error = 'Something has gone wrong. Please contact a system administrator.'
+            error = 'Something has gone wrong. Please contact a system administrator.';
           }
 
           res.render('result', {