Skip to content

Commit

Permalink
Expose Accounts._hashPassword method
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Apr 25, 2020
1 parent 5bef635 commit 1f3d225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ https://atmospherejs.com/meteor/reactive-dict
* [Accounts.resetPassword](http://docs.meteor.com/#/full/accounts_resetpassword)
* [Accounts.onLogin](http://docs.meteor.com/#/full/accounts_onlogin)
* [Accounts.onLoginFailure](http://docs.meteor.com/#/full/accounts_onloginfailure)
* `Accounts._hashPassword` - SHA-256 hashes password, for use with methods that may require authentication
1 change: 1 addition & 0 deletions src/user/Accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import User from './User';
import { hashPassword } from '../../lib/utils';

module.exports = {
_hashPassword:hashPassword,
createUser(options, callback = () => {}) {
if (options.username) options.username = options.username;
if (options.email) options.email = options.email;
Expand Down

0 comments on commit 1f3d225

Please sign in to comment.