mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 03:57:17 +02:00
Corrects additional incorrect guest authentication method.
This commit is contained in:
parent
06f2cba42b
commit
7d93098176
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