Ajustes para Simplifique

This commit is contained in:
Luis Eduardo Estevao
2026-01-12 16:15:55 -03:00
parent ed4a1cdf1e
commit 6d66d456ab
17 changed files with 345 additions and 473 deletions

View File

@@ -47,21 +47,21 @@ export class LoginComponent implements OnInit, AfterViewInit {
this.submitForm(); // Apenas submete se o formulário for válido
}
}
public submitForm(): void {
this.form.markAllAsTouched();
if (this.form.valid) {
this.loadingIcon = 'loading';
const domain = '@jurunense.com.br';
// const domain = '@jurunense.com.br';
let email = this.form.value.email;
// Remover domínio existente se já foi digitado
if (email.toLowerCase().endsWith(domain)) {
email = email.substring(0, email.length - domain.length);
}
// if (email.toLowerCase().endsWith(domain)) {
// email = email.substring(0, email.length - domain.length);
// }
const emailUpperCase = (email + domain).toUpperCase();
const emailUpperCase = (email).toUpperCase();
const passwordUpperCase = this.form.value.password.toUpperCase();
this.authService.login({