mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Update DashboardOIDC.py
This commit is contained in:
@@ -97,7 +97,6 @@ class DashboardOIDC:
|
||||
|
||||
return True, payload
|
||||
except Exception as e:
|
||||
with current_app.app_context():
|
||||
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e), provider, code, redirect_uri)
|
||||
return False, str(e)
|
||||
|
||||
@@ -109,6 +108,5 @@ class DashboardOIDC:
|
||||
open(DashboardOIDC.ConfigurationFilePath, 'r').read()
|
||||
)
|
||||
except Exception as e:
|
||||
with current_app.app_context():
|
||||
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e))
|
||||
return False
|
Reference in New Issue
Block a user