Changing the user login command to use the player's email address instead of username. Also Require quotes around the username with the character creation command regardless of whether it's two words or one.
This commit is contained in:
parent
5a48c2e30b
commit
50b17b3626
4 changed files with 34 additions and 15 deletions
|
|
@ -122,6 +122,12 @@ def is_dbref(dbstring):
|
|||
else:
|
||||
return True
|
||||
|
||||
def get_dbref_from_email(uemail):
|
||||
"""
|
||||
Returns a player's dbref when given an email address.
|
||||
"""
|
||||
return User.objects.filter(email__iexact=uemail)
|
||||
|
||||
def get_object_from_dbref(dbref):
|
||||
"""
|
||||
Returns an object when given a dbref.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue