diff options
Diffstat (limited to 'services/auth/source/smtp/source.go')
-rw-r--r-- | services/auth/source/smtp/source.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/auth/source/smtp/source.go b/services/auth/source/smtp/source.go index 52e2505670..006202e0d5 100644 --- a/services/auth/source/smtp/source.go +++ b/services/auth/source/smtp/source.go @@ -5,7 +5,6 @@ package smtp import ( - "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/login" "code.gitea.io/gitea/modules/json" ) @@ -35,7 +34,7 @@ type Source struct { // FromDB fills up an SMTPConfig from serialized format. func (source *Source) FromDB(bs []byte) error { - return models.JSONUnmarshalHandleDoubleEncode(bs, &source) + return json.UnmarshalHandleDoubleEncode(bs, &source) } // ToDB exports an SMTPConfig to a serialized format. |