Compare commits

..

No commits in common. "b06b38f83cf8d4ccaceb8996409e27bec9b8c4aa" and "0c4eb97cd863e8c72877a924ab7f5a11eadaca6d" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View file

@ -72,10 +72,9 @@ class LoginBase:
@Lazy
def authMethod(self):
meth = getConfigAuthMethod()
if meth == 'cookie':
if getConfigAuthMethod() == 'cookie':
return getAuthMethodCookieValue(self.request)
return meth
return 'legacy'
@Lazy
def oidc_allowed(self):

View file

@ -86,8 +86,7 @@ class ApiHandler(ApiCommon, NodeView):
target = self.context.target
if target is not None:
targetView = self.getContainerView(target)
if targetView is not None:
return targetView()
return targetView()
# TODO: check for request.method?
if self.request.method in ('PUT', 'POST'):
return self.error('Method not allowed', 405)
@ -112,8 +111,6 @@ class ApiHandler(ApiCommon, NodeView):
if target is None:
return None
cv = self.getContainerView(target)
if cv is None:
return None
targetView = cv.getView(name)
if targetView is None:
return None