|
|
@@ -123,7 +123,8 @@ def dt_login(request, from_modal=False):
|
|
|
if request.session.test_cookie_worked():
|
|
|
request.session.delete_test_cookie()
|
|
|
|
|
|
- if is_first_login_ever or 'AllowAllBackend' in backend_names or 'LdapBackend' in backend_names:
|
|
|
+ auto_create_home_backends = ['AllowAllBackend', 'LdapBackend', 'SpnegoDjangoBackend']
|
|
|
+ if is_first_login_ever or any(backend in backend_names for backend in auto_create_home_backends):
|
|
|
# Create home directory for first user.
|
|
|
try:
|
|
|
ensure_home_directory(request.fs, user.username)
|