Feature #1249
Email validator
Status: | CLOSED | Start date: | 06/22/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | 06/22/2012 | |
Assignee: | - | % Done: | 100% | |
Category: | nethserver-nethgui | |||
Target version: | v1.5.0 | |||
Resolution: | NEEDINFO: |
Description
Validate an email address according to the following rules:
- An email address is composed of a local and a domain part, in the form localpart@domainpart
- local part has a length between 1 and 64 characters
- local part must be a sequence of characters in the ranges
A-Z
a-z
0-9
or the symbols._-
. - the local part must start with a letter, and cannot contain two or more consecutive dots
..
- domain part is a valid hostname
- the entire email address length must be less or equal to 254 characters
Those rules allow a subset of strings considered valid email addresses by RFC5322
Related issues
Associated revisions
Validator.php: refactored addToChain() method. Passing FALSE as template argument skip automatic addFailureInfo() call in evaluate(). Refs #1249
NethPlatform.php: defined EMAIL constant and email validator constructor. Refs #1249 -- Email validator
Language: added translations for email validator. Refs #1249 -- Email validator
History
#1 Updated by Davide Principi about 9 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 10 to 100
Applied in changeset 7d8dc23e78892698da6a5bbe91601f1f944335b7.
#3 Updated by Davide Principi over 7 years ago
- Target version deleted (
DEV104)