evennia.web.utils package¶
Submodules¶
evennia.web.utils.backends module¶
-
class
evennia.web.utils.backends.CaseInsensitiveModelBackend[source]¶ Bases:
django.contrib.auth.backends.ModelBackendBy default ModelBackend does case _sensitive_ username authentication, which isn’t what is generally expected. This backend supports case insensitive username authentication.
-
authenticate(request, username=None, password=None, autologin=None)[source]¶ Custom authenticate with bypass for auto-logins
- Parameters
request (Request) – Request object.
username (str, optional) – Name of user to authenticate.
password (str, optional) – Password of user
autologin (Account, optional) – If given, assume this is an already authenticated account and bypass authentication.
-
evennia.web.utils.general_context module¶
-
evennia.web.utils.general_context.general_context(request)[source]¶ Returns common Evennia-related context stuff, which is automatically added to context of all views.
evennia.web.utils.middleware module¶
Bases:
objectHandle the shared login between website and webclient.
Initialize self. See help(type(self)) for accurate signature.