Coverage for /Users/davegaeddert/Development/dropseed/plain/plain-auth/plain/auth/default_settings.py: 83%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-10-16 22:04 -0500

1from importlib.util import find_spec 

2 

3AUTH_USER_MODEL: str 

4AUTH_LOGIN_URL: str 

5 

6if find_spec("plain.passwords"): 

7 # Automatically invalidate sessions on password field change, 

8 # if the plain-passwords is installed. You can change this value 

9 # if your password field is named differently, or you want 

10 # to use a different field to invalidate sessions. 

11 AUTH_USER_SESSION_HASH_FIELD: str = "password" 

12else: 

13 AUTH_USER_SESSION_HASH_FIELD: str = ""