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
|
address = session.address
|
||||||
|
|
||||||
# Get account class
|
# Get account class
|
||||||
Account = class_from_module(settings.BASE_ACCOUNT_TYPECLASS)
|
Guest = class_from_module(settings.BASE_GUEST_TYPECLASS)
|
||||||
|
|
||||||
# Get an available guest account
|
# Get an available guest account
|
||||||
# authenticate_guest() handles its own throttling
|
# authenticate() handles its own throttling
|
||||||
account, errors = Account.authenticate_guest(ip=address)
|
account, errors = Guest.authenticate(ip=address)
|
||||||
if account:
|
if account:
|
||||||
return enabled, account
|
return enabled, account
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue