|
@@ -168,6 +168,8 @@ def dt_login(request, from_modal=False):
|
|
|
ensure_home_directory(request.fs, request.user)
|
|
ensure_home_directory(request.fs, request.user)
|
|
|
except (IOError, WebHdfsException), e:
|
|
except (IOError, WebHdfsException), e:
|
|
|
LOG.error('Could not create home directory for %s user %s.' % ('OIDC' if 'OIDCBackend' in backend_names else 'SAML', request.user))
|
|
LOG.error('Could not create home directory for %s user %s.' % ('OIDC' if 'OIDCBackend' in backend_names else 'SAML', request.user))
|
|
|
|
|
+ if request.user.is_authenticated():
|
|
|
|
|
+ return HttpResponseRedirect(redirect_to)
|
|
|
|
|
|
|
|
if is_active_directory and not is_ldap_option_selected and \
|
|
if is_active_directory and not is_ldap_option_selected and \
|
|
|
request.method == 'POST' and request.user.username != request.POST.get('username'):
|
|
request.method == 'POST' and request.user.username != request.POST.get('username'):
|