Ajustes para Simplifique
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user