mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-01-06 04:33:58 +01:00
test
This commit is contained in:
@@ -77,9 +77,9 @@ if AUTH_TYPE == "oidc":
|
||||
oidc = OpenIDConnect(app)
|
||||
|
||||
# Check if OIDC user is logged in before routing to any page:
|
||||
@app.before_request
|
||||
@app.route('/login')
|
||||
@oidc.require_login
|
||||
def check_oidc_credentials():
|
||||
def login_page():
|
||||
LOG.error("Checking if the user is logged in...: "+str(oidc.user_loggedin))
|
||||
LOG.error("oidc.user_getfield('email'): "+oidc.user_getfield('email'))
|
||||
if not oidc.user_loggedin:
|
||||
|
||||
Reference in New Issue
Block a user