Default email domain to example.com per RFC2606
This commit is contained in:
parent
12e0e2e4fd
commit
1ed559a71c
1 changed files with 2 additions and 2 deletions
|
|
@ -369,7 +369,7 @@ def create_player(key, email, password,
|
||||||
key (str): The player's name. This should be unique.
|
key (str): The player's name. This should be unique.
|
||||||
email (str): Email on valid addr@addr.domain form. This is
|
email (str): Email on valid addr@addr.domain form. This is
|
||||||
technically required but if set to `None`, an email of
|
technically required but if set to `None`, an email of
|
||||||
`dummy@dummy.com` will be used as a placeholder.
|
`dummy@example.com` will be used as a placeholder.
|
||||||
password (str): Password in cleartext.
|
password (str): Password in cleartext.
|
||||||
|
|
||||||
Kwargs:
|
Kwargs:
|
||||||
|
|
@ -404,7 +404,7 @@ def create_player(key, email, password,
|
||||||
# correctly when each object is recovered).
|
# correctly when each object is recovered).
|
||||||
|
|
||||||
if not email:
|
if not email:
|
||||||
email = "dummy@dummy.com"
|
email = "dummy@example.com"
|
||||||
if _PlayerDB.objects.filter(username__iexact=key):
|
if _PlayerDB.objects.filter(username__iexact=key):
|
||||||
raise ValueError("A Player with the name '%s' already exists." % key)
|
raise ValueError("A Player with the name '%s' already exists." % key)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue