合并发布
This commit is contained in:
commit
90df2b1a9e
@ -284,7 +284,6 @@ func OAuth2Callback(ctx *gin.Context) {
|
|||||||
_, err := service.CastProvider.OAuthCodeToToken(ctx, req)
|
_, err := service.CastProvider.OAuthCodeToToken(ctx, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.L().Info("OAuth2Callback error", zap.Error(err))
|
zap.L().Info("OAuth2Callback error", zap.Error(err))
|
||||||
|
|
||||||
ctx.Redirect(http.StatusFound, fmt.Sprintf("%s?%s", config.AppConfig.System.AuthRedirectUrl, "status=1"))
|
ctx.Redirect(http.StatusFound, fmt.Sprintf("%s?%s", config.AppConfig.System.AuthRedirectUrl, "status=1"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,6 +54,10 @@ func init() {
|
|||||||
config.SetConsumerService(EmailAlertsProvider)
|
config.SetConsumerService(EmailAlertsProvider)
|
||||||
config.SetConsumerService(MembersProvider)
|
config.SetConsumerService(MembersProvider)
|
||||||
config.SetConsumerService(AyrshareProvider)
|
config.SetConsumerService(AyrshareProvider)
|
||||||
|
config.SetConsumerService(FilesProvider)
|
||||||
|
config.SetConsumerService(GovernanceProvider)
|
||||||
|
config.SetConsumerService(PressReleasesProvider)
|
||||||
|
config.SetConsumerService(SecFilingProvider)
|
||||||
if err := config.Load(); err != nil {
|
if err := config.Load(); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user