@feathersjs/authentication-local
Advanced tools
Comparing version 1.2.0 to 1.2.1
# Change Log | ||
## [v1.2.0](https://github.com/feathersjs/authentication-local/tree/v1.2.0) (2018-05-02) | ||
[Full Changelog](https://github.com/feathersjs/authentication-local/compare/v1.1.3...v1.2.0) | ||
**Merged pull requests:** | ||
- added support for nested password fields option in hash password hook [\#64](https://github.com/feathersjs/authentication-local/pull/64) ([ThePesta](https://github.com/ThePesta)) | ||
## [v1.1.3](https://github.com/feathersjs/authentication-local/tree/v1.1.3) (2018-04-20) | ||
@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/feathersjs/authentication-local/compare/v1.1.2...v1.1.3) |
const hasher = require('../utils/hash'); | ||
const { merge, get, set } = require('lodash'); | ||
const { merge, get, set, cloneDeep } = require('lodash'); | ||
const Debug = require('debug'); | ||
@@ -42,3 +42,5 @@ | ||
if (password) { | ||
return hashPw(password).then(hashedPassword => set(item, field, hashedPassword)); | ||
return hashPw(password).then(hashedPassword => | ||
set(cloneDeep(item), field, hashedPassword) | ||
); | ||
} | ||
@@ -45,0 +47,0 @@ |
{ | ||
"name": "@feathersjs/authentication-local", | ||
"description": "Local authentication strategy for @feathers/authentication", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"homepage": "https://github.com/feathersjs/authentication-local", | ||
@@ -6,0 +6,0 @@ "main": "lib/", |
28614
235