aboutsummaryrefslogtreecommitdiffstats
path: root/services/auth/source/sspi/source.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/auth/source/sspi/source.go')
-rw-r--r--services/auth/source/sspi/source.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/auth/source/sspi/source.go b/services/auth/source/sspi/source.go
index 68fd6a6079..8d469d481f 100644
--- a/services/auth/source/sspi/source.go
+++ b/services/auth/source/sspi/source.go
@@ -5,7 +5,6 @@
package sspi
import (
- "code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/login"
"code.gitea.io/gitea/modules/json"
)
@@ -28,7 +27,7 @@ type Source struct {
// FromDB fills up an SSPIConfig from serialized format.
func (cfg *Source) FromDB(bs []byte) error {
- return models.JSONUnmarshalHandleDoubleEncode(bs, &cfg)
+ return json.UnmarshalHandleDoubleEncode(bs, &cfg)
}
// ToDB exports an SSPIConfig to a serialized format.