assisweb 1.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -7,7 +7,6 @@ mongoose.connect("mongodb+srv://Assis:200420082018@cluster0.el3tr.mongodb.net/my
|
|
7
7
|
console.log(err)
|
8
8
|
})
|
9
9
|
|
10
|
-
|
11
10
|
const registerSchema = new mongoose.Schema({
|
12
11
|
MyEmail: String,
|
13
12
|
MyPass: String,
|
@@ -18,12 +17,12 @@ const registerSchema = new mongoose.Schema({
|
|
18
17
|
MyID: String
|
19
18
|
})
|
20
19
|
|
21
|
-
const
|
20
|
+
const Accounts = mongoose.model("Accounts")
|
22
21
|
|
23
22
|
|
24
23
|
module.exports = {
|
25
24
|
UserData : function(Email , Type) {
|
26
|
-
|
25
|
+
Accounts.findOne({MyEmail: Email} , (err , data) => {
|
27
26
|
if(err) {
|
28
27
|
return;
|
29
28
|
}
|