assisweb 11.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -25
- package/package.json +1 -1
package/index.js
CHANGED
@@ -22,18 +22,7 @@ const Accounts = mongoose.model("Accounts" , registerSchema)
|
|
22
22
|
|
23
23
|
|
24
24
|
module.exports = {
|
25
|
-
|
26
|
-
System : class {
|
27
|
-
constructor() {
|
28
|
-
return
|
29
|
-
}
|
30
|
-
/**
|
31
|
-
*
|
32
|
-
* @param {Email} Email
|
33
|
-
* @param {Pass} Pass
|
34
|
-
* @param {ConsoleNot} ConsoleNot
|
35
|
-
*/
|
36
|
-
CreateUserLogin(Email, Pass , ConsoleNot) {
|
25
|
+
CreateUserLogin : function(Email, Pass , ConsoleNot) {
|
37
26
|
// ConNot Not Found
|
38
27
|
if(!ConsoleNot) {
|
39
28
|
Accounts.findOne({MyEmail: Email} , (err , data) => {
|
@@ -79,19 +68,9 @@ module.exports = {
|
|
79
68
|
}else return console.log("Assis Error : Invaild Email")
|
80
69
|
})
|
81
70
|
}else return console.log("Assis Error : 'Email','Password','true Or false' ")
|
82
|
-
}
|
83
|
-
|
71
|
+
},
|
72
|
+
|
84
73
|
|
85
|
-
//User
|
86
|
-
Users : class {
|
87
|
-
constructor() {
|
88
|
-
return;
|
89
|
-
}
|
90
|
-
/**
|
91
|
-
*
|
92
|
-
* @param {Email} Email
|
93
|
-
* @param {Pass} Pass
|
94
|
-
*/
|
95
74
|
Data(Email , Pass) {
|
96
75
|
Accounts.findOne({MyEmail: Email} , (err , data) => {
|
97
76
|
if(err) {
|
@@ -102,7 +81,6 @@ module.exports = {
|
|
102
81
|
}else return console.log("Assis Error : Email is Invaild")
|
103
82
|
})
|
104
83
|
}
|
105
|
-
}
|
106
84
|
|
107
85
|
|
108
86
|
|