Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/techx/quill
Browse files Browse the repository at this point in the history
  • Loading branch information
jlin816 committed Jan 22, 2018
2 parents 0e575da + c7721ad commit 15b59ff
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ var express = require('express');
var bodyParser = require('body-parser');
var methodOverride = require('method-override');
var morgan = require('morgan');
var cookieParser = require('cookie-parser');

var mongoose = require('mongoose');
var port = process.env.PORT || 3000;
Expand All @@ -22,7 +21,6 @@ var app = express();
mongoose.connect(database);

app.use(morgan('dev'));
app.use(cookieParser());

app.use(bodyParser.urlencoded({
extended: true
Expand Down
3 changes: 3 additions & 0 deletions app/client/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ angular.module('reg')
url: "/application",
templateUrl: "views/application/application.html",
controller: 'ApplicationCtrl',
data: {
requireVerified: true
},
resolve: {
currentUser: function(UserService){
return UserService.getCurrentUser();
Expand Down
4 changes: 2 additions & 2 deletions app/server/controllers/UserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ UserController.declineById = function (id, callback){
UserController.verifyByToken = function(token, callback){
User.verifyEmailVerificationToken(token, function(err, email){
User.findOneAndUpdate({
email: new RegExp('^' + email + '$', 'i')
email: email.toLowerCase()
},{
$set: {
'verified': true
Expand Down Expand Up @@ -715,4 +715,4 @@ UserController.getStats = function(callback){
return callback(null, Stats.getUserStats());
};

module.exports = UserController;
module.exports = UserController;
2 changes: 1 addition & 1 deletion app/server/models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ schema.statics.verifyTempAuthToken = function(token, callback){

schema.statics.findOneByEmail = function(email){
return this.findOne({
email: new RegExp('^' + email + '$', 'i')
email: email.toLowerCase()
});
};

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"bcrypt-nodejs": "0.0.3",
"body-parser": "^1.8.4",
"bower": "^1.8.0",
"cookie-parser": "~1.3.2",
"dotenv": "^1.2.0",
"email-templates": "^2.0.1",
"express": "^4.9.8",
Expand All @@ -20,7 +19,7 @@
"gulp-sass": "^2.3.2",
"gulp-sourcemaps": "^1.12.0",
"gulp-uglify": "^1.5.4",
"handlebars": "^3.0.3",
"handlebars": "^4.0.11",
"jsonwebtoken": "5.0.4",
"method-override": "^2.3.5",
"moment": "^2.10.3",
Expand Down

0 comments on commit 15b59ff

Please sign in to comment.