mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-13 16:46:58 +00:00
Update DashboardOIDC.py
This commit is contained in:
parent
241fbd6be5
commit
3b97cb420d
@ -98,6 +98,7 @@ 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,5 +110,6 @@ 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
|
Loading…
x
Reference in New Issue
Block a user