-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataBases.js
More file actions
37 lines (33 loc) · 925 Bytes
/
Copy pathdataBases.js
File metadata and controls
37 lines (33 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
///////////////////////////////////////////////////////////////////////
// DATABASE
///////////////////////////////////////////////////////////////////////
const urlDatabase = {
b2xVn2: {
longURL: "http://www.lighthouselabs.ca",
userID: "ObWvTH",
},
"9sm5xK": {
longURL: "http://www.google.com",
userID: "VRVC4b",
},
dIp8z2: {
longURL: "http://www.example.com",
userID: "ObWvTH",
},
};
const users = {
ObWvTH: {
id: "ObWvTH",
email: "a@a.com",
password: "$2a$10$W04FvS124uxjonDPX3qqFOTocD7LxIVJVWKFJknxvJ0wD9hEtCZUi", // 123
},
VRVC4b: {
id: "VRVC4b",
email: "b@b.com",
password: "$2a$10$dikS5Bv7AnRHQRHubuvaP.SdVRutCAe8ZEPOXky4L5pyqLKN/sObe", // 456
},
};
///////////////////////////////////////////////////////////////////////
// DATABASE
///////////////////////////////////////////////////////////////////////
module.exports = { urlDatabase, users };