Skip to content

Commit 1f3d225

Browse files
author
EC2 Default User
committed
Expose Accounts._hashPassword method
1 parent 5bef635 commit 1f3d225

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,4 @@ https://atmospherejs.com/meteor/reactive-dict
9090
* [Accounts.resetPassword](http://docs.meteor.com/#/full/accounts_resetpassword)
9191
* [Accounts.onLogin](http://docs.meteor.com/#/full/accounts_onlogin)
9292
* [Accounts.onLoginFailure](http://docs.meteor.com/#/full/accounts_onloginfailure)
93+
* `Accounts._hashPassword` - SHA-256 hashes password, for use with methods that may require authentication

src/user/Accounts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import User from './User';
44
import { hashPassword } from '../../lib/utils';
55

66
module.exports = {
7+
_hashPassword:hashPassword,
78
createUser(options, callback = () => {}) {
89
if (options.username) options.username = options.username;
910
if (options.email) options.email = options.email;

0 commit comments

Comments
 (0)