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,7 +98,8 @@ class DashboardOIDC:
|
|||||||
|
|
||||||
return True, payload
|
return True, payload
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e), provider, code, redirect_uri)
|
with current_app.app_context():
|
||||||
|
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e), provider, code, redirect_uri)
|
||||||
return False, str(e)
|
return False, str(e)
|
||||||
|
|
||||||
|
|
||||||
@ -109,5 +110,6 @@ class DashboardOIDC:
|
|||||||
open(DashboardOIDC.ConfigurationFilePath, 'r').read()
|
open(DashboardOIDC.ConfigurationFilePath, 'r').read()
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e))
|
with current_app.app_context():
|
||||||
|
current_app.logger.error('Read OIDC file failed. Reason: ' + str(e))
|
||||||
return False
|
return False
|
Loading…
x
Reference in New Issue
Block a user