Skip to content

Commit

Permalink
Corretto pattern validazione username mail server.
Browse files Browse the repository at this point in the history
  • Loading branch information
pintorig committed May 29, 2020
1 parent e5d9874 commit 314e8eb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -220,7 +220,7 @@ public void validate() throws ValidationException {
ValidatorFactory vf = ValidatorFactory.newInstance();
vf.getValidator("host", this.host).notNull().minLength(1).pattern(CostantiValidazione.PATTERN_NO_WHITE_SPACES);
vf.getValidator("port", this.port).notNull().min(BigDecimal.ONE);
vf.getValidator("username", this.username).notNull().minLength(1).maxLength(35).pattern(CostantiValidazione.PATTERN_NO_WHITE_SPACES).pattern(CostantiValidazione.PATTERN_USERNAME);
vf.getValidator("username", this.username).notNull().minLength(1).maxLength(35).pattern(CostantiValidazione.PATTERN_NO_WHITE_SPACES);
vf.getValidator("password", this.password).notNull().minLength(1).maxLength(35);
vf.getValidator("from", this.from).notNull().minLength(1).pattern(CostantiValidazione.PATTERN_EMAIL);
vf.getValidator("readTimeout", this.readTimeout).notNull().min(BigDecimal.ZERO);
Expand Down

0 comments on commit 314e8eb

Please sign in to comment.