fix: remove old saved openid provider settings from cache when starting Vikunja
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Resolves vikunja/api#1487
This commit is contained in:
parent
4decbf9fc4
commit
9bf535d06f
@ -27,6 +27,7 @@ import (
|
||||
"code.vikunja.io/api/pkg/mail"
|
||||
"code.vikunja.io/api/pkg/migration"
|
||||
"code.vikunja.io/api/pkg/models"
|
||||
"code.vikunja.io/api/pkg/modules/auth/openid"
|
||||
"code.vikunja.io/api/pkg/modules/keyvalue"
|
||||
migrator "code.vikunja.io/api/pkg/modules/migration"
|
||||
"code.vikunja.io/api/pkg/notifications"
|
||||
@ -98,6 +99,7 @@ func FullInit() {
|
||||
user.RegisterDeletionNotificationCron()
|
||||
models.RegisterUserDeletionCron()
|
||||
models.RegisterOldExportCleanupCron()
|
||||
openid.CleanupSavedOpenIDProviders()
|
||||
|
||||
// Start processing events
|
||||
go func() {
|
||||
|
@ -161,3 +161,7 @@ func getProviderFromMap(pi map[string]interface{}) (provider *Provider, err erro
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func CleanupSavedOpenIDProviders() {
|
||||
_ = keyvalue.Del("openid_providers")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user