Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h4 class="welcome-subtitle primary">
<button class="md rounded block" type="submit" [ngClass]="{'success': formReestablecer.valid && !loading}"
[class.disabled]="formReestablecer.invalid || loading"
[disabled]="formReestablecer.invalid || loading">
Continuar
{{redirectOneLoginLabel}}
</button>
<button class="md rounded block info" type="button" (click)="validarCodigo()">
Ya tengo mi código
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export class RecuperarPasswordProfesionalPage implements OnInit {
}

public resetearPassword() {
if (this.redirectOneLogin) {
window.open('https://login.neuquen.gov.ar', '_system');
return;
}
const username = this.formReestablecer.value.username;
this.loading = true;
this.authProvider
Expand Down Expand Up @@ -71,6 +75,10 @@ export class RecuperarPasswordProfesionalPage implements OnInit {
});
}

get redirectOneLoginLabel() {
return this.redirectOneLogin ? 'Ir a One Login' : 'Continuar';
}

public cancel() {
this.router.navigate(['login/profesional']);
}
Expand Down
Loading