1from importlib.util import find_spec
2
3AUTH_LOGIN_URL: str
4
5if find_spec("plain.passwords"):
6 # Automatically invalidate sessions on password field change,
7 # if the plain-passwords is installed. You can change this value
8 # if your password field is named differently, or you want
9 # to use a different field to invalidate sessions.
10 AUTH_USER_SESSION_HASH_FIELD: str = "password"
11else:
12 AUTH_USER_SESSION_HASH_FIELD: str = ""