aloux-iam 0.0.47 → 0.0.48

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.
@@ -22,6 +22,13 @@ self.searchEmail = async (email, banCode) => {
22
22
  if(banCode === true){
23
23
  const code = await self.generatecode()
24
24
  await self.sendcodemailLogin(userLogin.email, code)
25
+
26
+ userLogin.validateKey.resetPassword.resetCode = code
27
+ let time = new Date()
28
+ const sumarMinutos = new Date(time.getTime() + 5 * 60000)
29
+ userLogin.validateKey.limitCodeTime = (new Date(sumarMinutos)).getTime()
30
+
31
+ await userLogin.save()
25
32
  }
26
33
 
27
34
  return response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aloux-iam",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "Aloux IAM for APIs ",
5
5
  "main": "index.js",
6
6
  "scripts": {