aloux-iam 0.0.110 → 0.0.112
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.
|
@@ -51,9 +51,7 @@ self.retrieve = async (req, res) => {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
if (req.body?.filter?._user) {
|
|
54
|
-
query.$and.push({
|
|
55
|
-
_createdBy: { $regex: req.body.filter._user, $options: "i" },
|
|
56
|
-
});
|
|
54
|
+
query.$and.push({ _createdBy: req.body.filter._user });
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
if (req.body.filter?.dateStart > 0 && req.body.filter?.dateEnd > 0) {
|
package/lib/services/auth.js
CHANGED
|
@@ -159,7 +159,7 @@ self.login = async (body, res) => {
|
|
|
159
159
|
|
|
160
160
|
if (!isPasswordMatch) {
|
|
161
161
|
//conteo de inicios fallidos
|
|
162
|
-
if (userLogin.validateKey.failedAttempts ===
|
|
162
|
+
if (userLogin.validateKey.failedAttempts === process.env.FAILED_ATTEMPS) {
|
|
163
163
|
await User.updateOne({ _id: userLogin._id }, { status: "Bloqueado" });
|
|
164
164
|
} else {
|
|
165
165
|
await User.updateOne(
|