Initial commit of content.
This commit is contained in:
34
lib/modules/apostrophe-users/index.js
Normal file
34
lib/modules/apostrophe-users/index.js
Normal file
@@ -0,0 +1,34 @@
|
||||
// This configures the apostrophe-users module to add an admin-level
|
||||
// group by default:
|
||||
|
||||
module.exports = {
|
||||
scripts: [
|
||||
{name: 'init'}
|
||||
],
|
||||
groups: [
|
||||
{
|
||||
title: 'guest',
|
||||
permissions: []
|
||||
},
|
||||
{
|
||||
title: 'AVES',
|
||||
permissions: []
|
||||
},
|
||||
{
|
||||
title: 'AVHS',
|
||||
permissions: []
|
||||
},
|
||||
{
|
||||
title: 'AVAS',
|
||||
permissions: []
|
||||
},
|
||||
{
|
||||
title: 'AVUSD',
|
||||
permissions: []
|
||||
},
|
||||
{
|
||||
title: 'admin',
|
||||
permissions: ['admin']
|
||||
}
|
||||
]
|
||||
};
|
||||
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