Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit bfabfa7

Browse files
authored
Merge pull request #28 from 4sh/SIMINVOICE-160
SIMINVOICE-160: Create 4sh admin user
2 parents e66b173 + 2a1193d commit bfabfa7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var admin_user = {
2+
name: "4sh_admin",
3+
4+
roles: ["seller"],
5+
companyRef: "53c535a5c8d11a14c7269436",
6+
companyRole: "DIRECTOR"
7+
};
8+
9+
db.getCollection('users').insertOne(admin_user);
10+
11+
admin_user._id = db.getCollection('users').findOne({email: admin_user.email})._id;
12+
db.getCollection('userCredentials').insertOne({
13+
"_id": admin_user._id,
14+
"passwordHash": "$2a$10$8EiasZHADtkNkF2C2yhfx./qY75KRa1iE.hABZxqQYQ4lbjUxUjxa"
15+
});

0 commit comments

Comments
 (0)