Permalink
Browse files

Adjusting whitespace and line breaks

  • Loading branch information...
1 parent 5ee5c6a commit 693d280f98bca8e13ac1b033523ed6ae5558cc5c @stenington stenington committed Aug 29, 2012
Showing with 9 additions and 2 deletions.
  1. +8 −1 app.js
  2. +1 −1 controllers/issuer.js
View
9 app.js
@@ -45,7 +45,14 @@ app.use(express.methodOverride());
app.use(middleware.logRequests());
app.use(middleware.cookieSessions());
app.use(middleware.userFromSession());
-app.use(middleware.csrf({ whitelist: ['/backpack/authenticate', '/issuer/validator/?', '/displayer/convert/.+', '/issuer/frameless.*'] }));
+app.use(middleware.csrf({
+ whitelist: [
+ '/backpack/authenticate',
+ '/issuer/validator/?',
+ '/displayer/convert/.+',
+ '/issuer/frameless.*'
+ ]
+}));
app.use(middleware.cors({ whitelist: ['/_badges.*', '/issuer.*', '/baker', '/displayer/.+/group.*'] }));
app.configure('development', function () {
View
@@ -113,7 +113,7 @@ exports.frame = function (req, res) {
exports.frameless = function (req, res) {
var assertionUrls = req.body.assertions || [];
assertionUrls = typeof assertionUrls === 'string' ? [assertionUrls] : assertionUrls;
- for (var i=0; i<assertionUrls.length; i++) {
+ for (var i = 0; i < assertionUrls.length; i++) {
var url = assertionUrls[i];
if (!validUrl(url)) {
logger.error("malformed url " + url + " returning 400");

0 comments on commit 693d280

Please sign in to comment.