diff --git a/app.js b/app.js index 8478f01..549a345 100644 --- a/app.js +++ b/app.js @@ -11,18 +11,30 @@ var fs = require('fs'); var rootPath = path.join(__dirname, 'public'); var config = require('./config'); var moment = require('moment'); +var methodOverride = require("method-override"); +var session = require("express-session"); +var passport = require("passport"); +var localStrategy = require("passport-local"); var app = express(); -app.use(bodyParser.urlencoded({extended: false})); - -//app.use(favicon(__dirname + '/public/images/AV4H.ico')); app.use(logger('dev')); + +app.use(cookieParser()); +app.use(bodyParser.urlencoded({extended: false})); +app.use(bodyParser.json()); +app.use(methodOverride('X-HTTP-Method-Override')); +app.use(session({secret: 'au*2(_io?MajesticPeakMountainBoarding', saveUninitialized: true, resave: true})); +app.use(passport.initialize()); +app.use(passport.session()); + +app.use(favicon(__dirname + '/public/images/Chicken.ico')); app.use(bodyParser.urlencoded({ extended: false })); app.use(cookieParser()); app.use(require('stylus').middleware(path.join(__dirname, 'public'))); + //Ensure we have an endsWith method in String. String.prototype.endsWith = function(suffix) { return this.indexOf(suffix, this.length - suffix.length) !== -1; diff --git a/config.js b/config.js index ab0ffd3..afba86a 100644 --- a/config.js +++ b/config.js @@ -1,8 +1,8 @@ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //Email settings - Change these: -exports.fromAddress = 'wynne@av4h.com'; -exports.smtpUser = 'wynne@av4h.com'; +exports.fromAddress = 'wynne@petitteton.com'; +exports.smtpUser = 'wynne@petitteton.com'; exports.smtpPassword = 'landFJ40'; exports.smtpHost = "secure.emailsrvr.com"; exports.smtpPort = 465; diff --git a/package.json b/package.json index 3bee40f..23c79df 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "payback", + "name": "PetitTeton", "version": "1.0.0", "private": true, "scripts": { diff --git a/public/images/Chicken.ico b/public/images/Chicken.ico new file mode 100644 index 0000000..06a7a15 Binary files /dev/null and b/public/images/Chicken.ico differ diff --git a/public/index.html b/public/index.html index d645ff0..b3f9243 100644 --- a/public/index.html +++ b/public/index.html @@ -13,7 +13,7 @@ -