Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mong_usr.js 776B

12345678910111213
  1. db.users.insert([
  2. // author,OHMNEWS2019
  3. {"_id":"author","name":"Test Author","type":"author","roles":["user","author"],"hash":"sha256","salt":"cy5CkPrplcEze6o4psURhw==","pwd":"Gc8ozlxjEGITkS+fW9tz2xLROzws44s04EOCWuP04qE=","abos":["wichtig","th"],"bookmarks":["th"],},
  4. // admin,oZuse1
  5. {"_id":"admin","name":"Test Admin","type":"admin","roles":["user","author","admin"],"hash":"sha256","salt":"PoIUHbDp7tP34ji31iQ0zw==","pwd":"mJpIfIksYs6LJJwYRBemFKqR6TacsSl2E0ZtpO1GMuk=","abos":["wichtig","th"],"bookmarks":["wichtig"],},
  6. ])
  7. db.users.insert({"name":"mustermannmax", "roles":["user"],"abos":[],"bookmarks":[]})
  8. //var c = require('./server/crypto.js'),
  9. // e = {"_id":"writer","hash":"sha256"};
  10. //c.fillLocalAuth(e,"pwd");
  11. //console.info(JSON.stringify(e));