Remove dummy@example.com as email fallback since django no longer requires an email to be set

This commit is contained in:
Griatch 2020-03-20 21:56:30 +01:00
parent 1024cb6f52
commit 5d15010dde
2 changed files with 5 additions and 4 deletions

View file

@ -52,6 +52,8 @@ without arguments starts a full interactive Python console.
fail e.g. for your inventory objs (since their loc is you), whereas this will pass.
- RPSystem contrib's CmdRecog will now list all recogs if no arg is given. Also multiple
bugfixes.
- Remove `dummy@example.com` as a default account email when unset, a string is no longer
required by Django.
## Evennia 0.9 (2018-2019)

View file

@ -486,9 +486,8 @@ def create_account(
Args:
key (str): The account's name. This should be unique.
email (str): Email on valid addr@addr.domain form. This is
technically required but if set to `None`, an email of
`dummy@example.com` will be used as a placeholder.
email (str or None): Email on valid addr@addr.domain form. If
the empty string, will be set to None.
password (str): Password in cleartext.
Kwargs:
@ -532,7 +531,7 @@ def create_account(
# correctly when each object is recovered).
if not email:
email = "dummy@example.com"
email = None
if _AccountDB.objects.filter(username__iexact=key):
raise ValueError("An Account with the name '%s' already exists." % key)