Compare commits
No commits in common. "b06b38f83cf8d4ccaceb8996409e27bec9b8c4aa" and "0c4eb97cd863e8c72877a924ab7f5a11eadaca6d" have entirely different histories.
b06b38f83c
...
0c4eb97cd8
2 changed files with 3 additions and 7 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -86,7 +86,6 @@ class ApiHandler(ApiCommon, NodeView):
|
|||
target = self.context.target
|
||||
if target is not None:
|
||||
targetView = self.getContainerView(target)
|
||||
if targetView is not None:
|
||||
return targetView()
|
||||
# TODO: check for request.method?
|
||||
if self.request.method in ('PUT', 'POST'):
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue