feathers-authentication
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -17,3 +17,3 @@ 'use strict'; | ||
function requireAdminToSetAdmin() { | ||
var adminField = arguments.length <= 0 || arguments[0] === undefined ? 'admin' : arguments[0]; | ||
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
@@ -24,3 +24,3 @@ options = Object.assign({}, defaults, options); | ||
if (hook.params.user && !hook.params.user[options.adminField] && hook.params.provider) { | ||
delete hook.data[adminField]; | ||
delete hook.data[options.adminField]; | ||
} | ||
@@ -27,0 +27,0 @@ }; |
{ | ||
"name": "feathers-authentication", | ||
"description": "Add Authentication to your FeathersJS app.", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"homepage": "https://github.com/feathersjs/feathers-authentication", | ||
@@ -6,0 +6,0 @@ "main": "lib/", |