Socket
Socket
Sign inDemoInstall

hoodie-plugin-users

Package Overview
Dependencies
Maintainers
7
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hoodie-plugin-users - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

79

admin-dashboard/scripts/app.js

@@ -246,16 +246,30 @@ (function() {

UsersView.prototype.getConfig = _.partial(couchr.get, '/_api/app/config');
UsersView.prototype.setConfig = _.partial(couchr.put, '/_api/app/config');
UsersView.prototype.updateConfig = function(obj, callback) {
this.getConfig((function(_this) {
return function(err, doc) {
if (err) {
UsersView.prototype.getConfig = function getConfig(callback) {
hoodieAdmin.request('GET', '/app/config')
.fail(function(error) { callback(error); })
.done(function(response) { callback(null, response); });
};
UsersView.prototype.setConfig = function setConfig(doc, callback) {
hoodieAdmin.request('PUT', '/app/config', {
data: JSON.stringify(doc)
})
.fail(function(error) { callback(error); })
.done(function(response) { callback(null, response); });
};
UsersView.prototype.updateConfig = function updateConfig(obj, callback) {
var view = this;
this.getConfig(function (err, doc) {
if (err) {
return callback(err);
}
doc.config = _.extend(doc.config, obj);
_this.setConfig(doc, callback);
};
})(this));
}
doc.config = _.extend(doc.config, obj);
view.setConfig(doc, callback);
});
};

@@ -283,2 +297,5 @@

}
if (! doc.config.additional_user_dbs) {
doc.config.additional_user_dbs = [];
}
_this.databases = doc.config.additional_user_dbs.join(', ');

@@ -615,3 +632,3 @@ console.log('databases: ', _this.databases);

function program1(depth0,data) {
var buffer = "", stack1;

@@ -625,3 +642,3 @@ buffer += "\n ";

function program2(depth0,data) {
var buffer = "", stack1, helper;

@@ -645,3 +662,3 @@ buffer += "\n <h2>Edit user '";

function program4(depth0,data) {
var buffer = "", stack1, helper;

@@ -680,4 +697,4 @@ buffer += "\n <!--\n <h2>Settings</h2>\n <p>Configure whether users must confirm their signup and if yes, set up the email they will receive for this purpose.</p>\n <form>\n ";

function program5(depth0,data) {
return "\n <section>\n <div class=\"control-group\">\n <label>\n Signup confirmation\n </label>\n <div class=\"controls\">\n <span class=\"note\">Email needs to be configured in <a href=\"/modules/appconfig\">Appconfig</a> before enabling signup confirmation</span>\n </div>\n </div>\n </section>\n ";

@@ -687,3 +704,3 @@ }

function program7(depth0,data) {
var buffer = "", stack1, helper;

@@ -707,3 +724,3 @@ buffer += "\n <section>\n <div class=\"control-group\">\n <label>\n Signup confirmation\n </label>\n <div class=\"controls\">\n <label class=\"checkbox\">\n <input type=\"checkbox\" name=\"confirmationMandatory\" class=\"formCondition\" data-conditions=\"true:.confirmationOptions\"> is mandatory\n </label>\n </div>\n </div>\n </section>\n\n <section class=\"confirmationOptions\">\n <div class=\"control-group\">\n <label>\n From address\n </label>\n <div class=\"controls\">\n <input type=\"email\" name=\"confirmationEmailFrom\" value=\""

function program9(depth0,data) {
var buffer = "", stack1, helper;

@@ -719,3 +736,3 @@ buffer += " value=\"";

function program11(depth0,data) {
var buffer = "", stack1, helper;

@@ -731,4 +748,4 @@ buffer += " value=\"";

function program13(depth0,data) {
return "\n <button class=\"btn clearSearch\">Clear search</button>\n ";

@@ -738,3 +755,3 @@ }

function program15(depth0,data) {
var buffer = "", stack1;

@@ -748,3 +765,3 @@ buffer += "\n <table id=\"userList\" class=\"table users table-striped\">\n <thead>\n <tr>\n <th data-sort-by=\"username\">Username</th>\n <th data-sort-by=\"signupDate\">Signup date</th>\n <th data-sort-by=\"state\">State</th>\n <th class=\"no-sort\"></th>\n </tr>\n </thead>\n <tbody>\n ";

function program16(depth0,data) {
var buffer = "", stack1, helper, options;

@@ -786,3 +803,3 @@ buffer += "\n <tr data-id=\"";

function program17(depth0,data) {
var buffer = "", stack1, helper, options;

@@ -808,3 +825,3 @@ buffer += "\n <div class=\"inTableError\">\n <span class=\"error\">";

function program19(depth0,data) {
var buffer = "", stack1, helper, options;

@@ -818,4 +835,4 @@ buffer += "\n ";

function program20(depth0,data) {
return "\n <span class=\"pill success\">confirmed</span>\n ";

@@ -825,4 +842,4 @@ }

function program22(depth0,data) {
return "\n <span class=\"pill warn\">unconfirmed</span>\n ";

@@ -832,3 +849,3 @@ }

function program24(depth0,data) {
var buffer = "", stack1, helper;

@@ -854,2 +871,2 @@ buffer += "\n <div class=\"tableStatus\">\n <p class=\"currentSearchTerm muted\">";

return buffer;
});
});

@@ -5,3 +5,3 @@ {

"url": "https://github.com/hoodiehq/hoodie-plugin-users/",
"version": "2.1.3",
"version": "2.1.4",
"dependencies": {

@@ -8,0 +8,0 @@ "backbone": "~0.9",

@@ -0,1 +1,10 @@

<a name="2.1.3"></a>
### 2.1.3 (2015-02-08)
#### Bug Fixes
* avoid 401 errors when setting extra user databases ([0b93d3a9](https://github.com/hoodiehq/hoodie-plugin-users/commit/0b93d3a9677b38cc36b4bbbd655587a6a6ded00f))
<a name="2.1.2"></a>

@@ -2,0 +11,0 @@ ### 2.1.2 (2014-11-12)

@@ -194,2 +194,5 @@ var path = require('path');

}
},
stop: {
}

@@ -289,7 +292,7 @@ },

'fakesmtp:test',
'hoodie',
'hoodie:start',
'continueOn',
'mocha_browser:all',
'continueOff',
'hoodie_stop',
'hoodie:stop',
'shell:npmUnlink',

@@ -304,6 +307,6 @@ 'shell:removePlugin'

'shell:installPlugin',
'hoodie'
'hoodie:start'
]);
grunt.registerTask('stop', [
'hoodie_stop',
'hoodie:stop',
'shell:npmUnlink',

@@ -310,0 +313,0 @@ 'shell:removePlugin',

{
"name": "hoodie-plugin-users",
"version": "2.1.3",
"version": "2.1.4",
"description": "Hoodie plugin for handling user accounts and dbs",

@@ -26,3 +26,3 @@ "repository": {

"grunt-env": "^0.4.1",
"grunt-hoodie": "0.3.0",
"grunt-hoodie": "^0.5.4",
"grunt-mocha-browser": "0.0.4",

@@ -51,3 +51,3 @@ "grunt-release-hoodie": "^2.7.0",

},
"codename": "wonderful-mallard"
"codename": "awe-inspiring-fox"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc