We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58d71cd commit 97f4239Copy full SHA for 97f4239
models/auth/source.go
@@ -232,7 +232,7 @@ func CreateSource(source *Source) error {
232
err = registerableSource.RegisterSource()
233
if err != nil {
234
// remove the AuthSource in case of errors while registering configuration
235
- if _, err := db.GetEngine(db.DefaultContext).Delete(source); err != nil {
+ if _, err := db.GetEngine(db.DefaultContext).ID(source.ID).Delete(new(Source)); err != nil {
236
log.Error("CreateSource: Error while wrapOpenIDConnectInitializeError: %v", err)
237
}
238
0 commit comments