Skip to content

Commit

Permalink
Merge pull request #52 from domapic/release-1.0.0-beta.4
Browse files Browse the repository at this point in the history
Release 1.0.0 beta.4
  • Loading branch information
javierbrea committed May 2, 2019
2 parents 32990f2 + e85d6b7 commit 3a9c8e9
Show file tree
Hide file tree
Showing 6 changed files with 244 additions and 122 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.0.0-beta.4] - 2019-05-02
### Fixed
- Remove unnecessary folder published to npm.
- Convert email into lowercase when saving it to database.

### Changed
- Use files property in package.json instead of npmignore file.
Expand Down
3 changes: 2 additions & 1 deletion lib/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const Model = service => {
validate: value => Promise.all([
emailValidator(value),
uniqueEmailValidator(value)
])
]),
set: email => email.toLowerCase()
},
password: {
type: String,
Expand Down
Loading

0 comments on commit 3a9c8e9

Please sign in to comment.