فهرست منبع

Cambios en generar contraseña

JeanBenitez 3 سال پیش
والد
کامیت
a26569daa7

+ 0 - 5
vacaciones/src/app/components/mco/mcomau/mcomau.component.ts

@@ -106,11 +106,6 @@ export class MCOMAUComponent implements AfterViewInit {
         data.RFCUSUARIO.toLowerCase().includes(filter)
       );
     };
-
-    
-
-    
-
     await this.obtener();
   }
 

+ 2 - 2
vacaciones/src/app/components/mes/mesmcc/mesmcc.component.ts

@@ -68,8 +68,8 @@ export class MESMCCComponent implements OnInit {
       password += chars.substring(randomNumber, randomNumber + 1);
     }
 
-    this.new_password?.setValue(password);
-    this.new_password_confirmation?.setValue(password);
+    this.new_password?.setValue("Tmk#"+password+"0");
+    this.new_password_confirmation?.setValue("Tmk#"+password+"0");
   }
 
   openDialogForm(item: any = {}) {

+ 2 - 2
vacaciones/src/app/components/resources/dialogos/cambiar-contrasena/cambiar-contrasena.component.ts

@@ -46,7 +46,7 @@ export class CambiarContrasenaComponent implements OnInit {
       let randomNumber = Math.floor(Math.random() * chars.length);
       password += chars.substring(randomNumber, randomNumber + 1);
     }
-    this.password1?.setValue(password);
-    this.password2?.setValue(password);
+    this.password1?.setValue("Tmk#"+password+"0");
+    this.password2?.setValue("Tmk#"+password+"0");
   }
 }