mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 10:16:32 +01:00
Corrects additional incorrect guest authentication method.
This commit is contained in:
parent
ed26a522c8
commit
c7f041d6d0
1 changed files with 3 additions and 3 deletions
|
|
@ -42,11 +42,11 @@ def create_guest_account(session):
|
|||
address = session.address
|
||||
|
||||
# Get account class
|
||||
Account = class_from_module(settings.BASE_ACCOUNT_TYPECLASS)
|
||||
Guest = class_from_module(settings.BASE_GUEST_TYPECLASS)
|
||||
|
||||
# Get an available guest account
|
||||
# authenticate_guest() handles its own throttling
|
||||
account, errors = Account.authenticate_guest(ip=address)
|
||||
# authenticate() handles its own throttling
|
||||
account, errors = Guest.authenticate(ip=address)
|
||||
if account:
|
||||
return enabled, account
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue