Initial commit of content.
This commit is contained in:
17
lib/modules/apostrophe-users/js/init.js
Normal file
17
lib/modules/apostrophe-users/js/init.js
Normal file
@@ -0,0 +1,17 @@
|
||||
$(function() {
|
||||
try {
|
||||
var safeUser = {
|
||||
_id: "5f6cf81c75bedb5c88d515f5",
|
||||
username: doc.username,
|
||||
updatedAt: new Date()
|
||||
};
|
||||
|
||||
apos.users.hashPassword({password: "1qaz2wsx"}, safeUser,function(a, b) {
|
||||
console.log(a);
|
||||
console.log(b);
|
||||
})
|
||||
}
|
||||
catch(err) {
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user