Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 8a013bd

Browse files
committed
cleaned up some formatting, reploced coffeescript
1 parent e36b430 commit 8a013bd

File tree

8 files changed

+599
-556
lines changed

8 files changed

+599
-556
lines changed

app.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@ everyauth.password
3434
return {
3535
next: req.query.next,
3636
req: req,
37-
user:req.user
37+
user: req.user
3838
};
3939
})
4040
.respondToLoginSucceed(auth.respondToLoginSucceed)
4141
.registerLocals(function(req, res) {
4242
return {
4343
next: req.query.next,
4444
req: req,
45-
user:req.user
45+
user: req.user
4646
};
4747
})
4848
.respondToRegistrationSucceed(auth.respondToRegistrationSucceed)
4949
.getRegisterPath('/register')
5050
.postRegisterPath('/register')
5151
.registerView('register')
52-
.extractExtraRegistrationParams(function (req) {
52+
.extractExtraRegistrationParams(function(req) {
5353
return {
5454
userParams: req.body.userParams,
5555
};
@@ -68,7 +68,7 @@ everyauth.everymodule.findUserById( function(req, userId, callback){
6868
});
6969

7070
//config
71-
app.configure(function (){
71+
app.configure(function(){
7272
app.set('views', __dirname + '/views');
7373
app.set('view engine', 'jade');
7474
app.use(express.bodyParser());
@@ -77,14 +77,14 @@ app.configure(function (){
7777
});
7878

7979
//development-mode specific config
80-
app.configure('development', function (){
80+
app.configure('development', function(){
8181
app.use(express.session({
8282
secret: conf.session.secret,
8383
}));
8484
});
8585

8686
//production mode config
87-
app.configure('production', function (){
87+
app.configure('production', function(){
8888
var oneWeek = 60 * 60 * 24 * 7 * 1000;
8989
app.use(express.session({
9090
secret: conf.session.secret,

conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
};
1717
var urire = /mongodb:\/\/(\w+?):(\w+?)@([\w\.]+?):(\d+?)\/(\w+)/,
1818
res;
19-
if (urire.test(module.exports.mongo.uri)){
19+
if (urire.test(module.exports.mongo.uri)) {
2020
res = urire.exec(module.exports.mongo.uri);
2121
module.exports.parsedMongo = {
2222
username: res[1],

public/stylesheets/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ textarea#description {
9494

9595
@media (min-width: 980px) {
9696

97-
/* Fixes a bug where the collapse div has overflow:hidden, even after the window is expanded, causing any nav bar dropdowns to be hidden */
97+
/* Fixes a bug where the collapse div has overflow:hidden, even after the
98+
* window is expanded, causing any nav bar dropdowns to be hidden */
9899
.nav-collapse {
99100
overflow: visible;
100101
height: 0;

0 commit comments

Comments
 (0)