This commit is contained in:
chenyang
2022-06-29 12:28:49 +08:00
parent eb6436dbeb
commit d8fbbb0fa3
7 changed files with 33 additions and 25 deletions
+5
View File
@@ -142,3 +142,8 @@ STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),)
# AUTH_USER_MODEL为我们自定义的用户类
AUTH_USER_MODEL = "server_auth.MindUser"
# 自定义 登陆手段
AUTHENTICATION_BACKENDS = [
'server_auth.lib.auth.AuthBackend',
]