diff --git a/lib/browserid/views.js b/lib/browserid/views.js index 92801b915ba13d673dd2272bb4c0ea16aa6a18a3..362ec942e6ad4b2b1e4d5f743f35f4bb62179c72 100644 --- a/lib/browserid/views.js +++ b/lib/browserid/views.js @@ -116,7 +116,6 @@ exports.setup = function(app) { try { const publicKey = secrets.loadPublicKey(); - const pkAsString = JSON.stringify(publicKey.toSimpleObject()); } catch(e){ logger.error("can't read public key, exiting: " + e); process.nextTick(function() { process.exit(1); }); @@ -135,9 +134,6 @@ exports.setup = function(app) { // browserid.org as a secondary (and anyone else they decide to for // whatever reason). app.get("/.well-known/browserid", function(req, res) { - res.render('declaration_of_support.ejs', { - key: pkAsString, - layout: false - }); + res.json({ 'public-key': publicKey.toSimpleObject() }); }); }; diff --git a/resources/views/declaration_of_support.ejs b/resources/views/declaration_of_support.ejs deleted file mode 100644 index a7381f0c71edde1f4a0abf5cf1751bc9d1b7c588..0000000000000000000000000000000000000000 --- a/resources/views/declaration_of_support.ejs +++ /dev/null @@ -1,3 +0,0 @@ -{ - "public-key": <%- key %> -}