Initial commit of content.

This commit is contained in:
2021-01-13 11:25:45 -08:00
commit 9b8760fd34
67 changed files with 25486 additions and 0 deletions

View 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']
}
]
};

View 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);
}
});