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