mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-18 02:56:42 +01:00
test
This commit is contained in:
12
server.py
12
server.py
@@ -92,13 +92,17 @@ elif AUTH_TYPE == "basic":
|
||||
basic_auth = BasicAuth(app)
|
||||
# Make a fake decorator for oidc.require_login
|
||||
class oidc:
|
||||
def require_login(self):
|
||||
return self.func()
|
||||
def require_login(self, func):
|
||||
def inner():
|
||||
func()
|
||||
return inner
|
||||
else:
|
||||
# Make a fake decorator for oidc.require_login
|
||||
class oidc:
|
||||
def require_login(self):
|
||||
return self.func()
|
||||
def require_login(self, func):
|
||||
def inner():
|
||||
func()
|
||||
return inner
|
||||
|
||||
########################################################################################
|
||||
# Set Authentication type - Dynamically load function decorators
|
||||
|
||||
Reference in New Issue
Block a user