Skip to content

Commit

Permalink
fix(MAT): Agrega mensaje de usuario one login
Browse files Browse the repository at this point in the history
  • Loading branch information
silviroa committed Jun 19, 2024
1 parent 0d7532a commit 35c110e
Showing 1 changed file with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,20 @@ export class InscripcionProfesionalesComponent implements OnInit {
this.usuarioService.createUsuario(newUser, { token: this.token }).subscribe(user => {
if (user) {
const contactoProfesional = this.updateContactos();
this.profesionalService.actualizarProfesional({ id: this.profesional.id, contactos: contactoProfesional }, { token: this.token }).subscribe((res) => {
if (res) {
this.plex.info('success', `Un email a ${newUser.email} fue enviado con sus datos de inicio de sesión`, 'Su usuario fue creado correctamente');
this.enProceso = false;
this.resetForm();
}
});
this.profesionalService.actualizarProfesional({ id: this.profesional.id, contactos: contactoProfesional }, { token: this.token })
.subscribe((res) => {
if (res) {
if (user.tipo === 'temporal') {
this.plex.info('success', `Un email a ${newUser.email} fue enviado con sus datos de inicio de sesión`, 'Su usuario fue creado correctamente');
} else {
if (user.tipo === '') {
this.plex.info('success', 'El usuario fue generado correctamente, puede ingresar con el usuario y clave de ONE LOGIN', 'Su usuario fue creado correctamente');
}
}
this.enProceso = false;
this.resetForm();
}
});
}
}, (error) => {
this.plex.info('warning', error);
Expand Down

0 comments on commit 35c110e

Please sign in to comment.