Open IgorDoring opened 4 months ago
validacao do email feito com o proprio validator do Angular, explicacao de como funciona vindo do proprio doc do angular:
_Tests the value using a regular expression pattern suitable for common use cases. The pattern is based on the definition of a valid email address in the WHATWG HTML specification with some enhancements to incorporate more RFC rules (such as rules related to domain names and the lengths of different parts of the address).
The differences from the WHATWG version include:
Disallow local-part (the part before the @ symbol) to begin or end with a period (.). Disallow local-part to be longer than 64 characters. Disallow the whole address to be longer than 254 characters._
mudando validacao de email para pattern /^[a-zA-z0-9]{3,}@/ para alinhar com o requerimento
Exibir um campo solicitando o e-mail do usuário (mínimo 3 caracteres e o caracter "@", deve-se mostrar uma mensagem de erro). Enquanto o e-mail não estiver correto, o botão para o próximo slide deve ser bloqueado.