diff options
Diffstat (limited to 'services/auth/source/ldap/source.go')
-rw-r--r-- | services/auth/source/ldap/source.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/auth/source/ldap/source.go b/services/auth/source/ldap/source.go index 3e751f512b..be4a4b2d62 100644 --- a/services/auth/source/ldap/source.go +++ b/services/auth/source/ldap/source.go @@ -7,7 +7,6 @@ package ldap import ( "strings" - "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/login" "code.gitea.io/gitea/modules/json" "code.gitea.io/gitea/modules/secret" @@ -62,7 +61,7 @@ type Source struct { // FromDB fills up a LDAPConfig from serialized format. func (source *Source) FromDB(bs []byte) error { - err := models.JSONUnmarshalHandleDoubleEncode(bs, &source) + err := json.UnmarshalHandleDoubleEncode(bs, &source) if err != nil { return err } |