tango-api-schema 2.2.128 → 2.2.130
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
CHANGED
|
@@ -89,6 +89,7 @@ import revopConfigModel from "./schema/revopConfig.model.js";
|
|
|
89
89
|
import planoCrestLogModel from './schema/planoCrestLog.model.js';
|
|
90
90
|
import countryCurrencyModel from './schema/countryCurrency.model.js';
|
|
91
91
|
import streamingModel from './schema/streaming.model.js';
|
|
92
|
+
import loginAttempt from "./schema/loginAttempt.model.js";
|
|
92
93
|
|
|
93
94
|
|
|
94
95
|
export default {
|
|
@@ -182,5 +183,6 @@ export default {
|
|
|
182
183
|
revopConfigModel,
|
|
183
184
|
planoCrestLogModel,
|
|
184
185
|
countryCurrencyModel,
|
|
185
|
-
streamingModel
|
|
186
|
+
streamingModel,
|
|
187
|
+
loginAttempt
|
|
186
188
|
};
|
package/package.json
CHANGED
|
@@ -7,11 +7,11 @@ const loginAttempts = new mongoose.Schema(
|
|
|
7
7
|
},
|
|
8
8
|
maxAttempt: {
|
|
9
9
|
type:Number,
|
|
10
|
-
default:
|
|
10
|
+
default:0
|
|
11
11
|
},
|
|
12
12
|
lockTime:{
|
|
13
13
|
type: Number,
|
|
14
|
-
default:
|
|
14
|
+
default:30
|
|
15
15
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
@@ -21,6 +21,6 @@ const loginAttempts = new mongoose.Schema(
|
|
|
21
21
|
timestamps: true,
|
|
22
22
|
},
|
|
23
23
|
);
|
|
24
|
-
loginAttempts.index( { createdAt: 1 }, { expires: '
|
|
24
|
+
loginAttempts.index( { createdAt: 1 }, { expires: '30m' })
|
|
25
25
|
|
|
26
26
|
export default mongoose.model( 'loginAttempts', loginAttempts, 'loginAttempts');
|