check email and username before start installation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Platform |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
After some installation failure I found into django code how it validate email and username.
To be more consistent we can add this 2 check inside our installation script to avoid waste of time
during installation with wrong parameters.
import re
RE_VALID_USERNAME = re.compile(
EMAIL_RE = re.compile(
r"(
r'|
r')
def is_valid_
if not EMAIL_RE.
raise exceptions.
if not RE_VALID_
Changed in oq-platform: | |
milestone: | none → 1.13.0 |
Behaviors have changed in oq-platform 2.0