mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Remove dummy@example.com as email fallback since django no longer requires an email to be set
This commit is contained in:
parent
1024cb6f52
commit
5d15010dde
2 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue