Compare commits

..

No commits in common. "94f70d2565a362ac7d54d49d979eabb10078bdbb" and "bcaa0dd611db1acc85c7f8c6a8847a43681264d9" have entirely different histories.

3 changed files with 3 additions and 17 deletions

View File

@ -19,17 +19,8 @@
oneditprepare: function () {
var id = this.id;
var pathname = document.location.pathname;
if (pathname.slice(-1) != "/") {
pathname += "/";
}
var callback = location.protocol + "//" +
location.hostname +
(location.port?":"+location.port:"")+
pathname + "indieauth/auth/callback";
$('#node-config-start-auth').mousedown(function () {
var callback = 'https://localhost:1881/indieauth/auth/callback';
var clientId = $("#node-config-input-client_id").val();
var me = $("#node-config-input-me").val();
var url = 'indieauth/auth?id=' + id + '&client_id=' + clientId + "&me=" + me + "&callback=" + encodeURIComponent(callback);
@ -40,11 +31,6 @@
</script>
<script type="text/x-red" data-template-name="indieauth">
<div class="form-tips" id="node-config-indieauth-tooltip">
Fill in your Client ID, Me url and click Web Sign In. You will be redirect to your authorization endpoint. When authorization is complete you can close the new tab and
click Done.
</div>
<div class="form-row">
<label for="node-config-input-client_id"><i class="icon-bookmark"></i> Client ID</label>
<input type="text" id="node-config-input-client_id">

View File

@ -35,7 +35,7 @@ module.exports = function (RED) {
RED.nodes.addCredentials(node_id, credentials);
}).catch(err => {
RED.log.error(err);
res.send("error while getting authurl");
res.send(err);
});
});

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-contrib-micropub",
"version": "0.2.1",
"version": "0.2.0",
"dependencies": {
"micropub-helper": "1.5.3"
},