Skip to content

Commit 70b1975

Browse files
committed
fixup! Merge branch 'add-ldap-configuration-edit-tests' into move-login-out-of-models
Signed-off-by: Andrew Thornton <[email protected]>
1 parent a38947e commit 70b1975

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

services/auth/source/ldap/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type Source struct {
6060

6161
// FromDB fills up a LDAPConfig from serialized format.
6262
func (source *Source) FromDB(bs []byte) error {
63-
err := models.JSONUnmarshalHandleDoubleEncode(bs, source)
63+
err := models.JSONUnmarshalHandleDoubleEncode(bs, &source)
6464
if err != nil {
6565
return err
6666
}

services/auth/source/oauth2/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type Source struct {
3232

3333
// FromDB fills up an OAuth2Config from serialized format.
3434
func (source *Source) FromDB(bs []byte) error {
35-
return models.JSONUnmarshalHandleDoubleEncode(bs, source)
35+
return models.JSONUnmarshalHandleDoubleEncode(bs, &source)
3636
}
3737

3838
// ToDB exports an SMTPConfig to a serialized format.

services/auth/source/smtp/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type Source struct {
3232

3333
// FromDB fills up an SMTPConfig from serialized format.
3434
func (source *Source) FromDB(bs []byte) error {
35-
return models.JSONUnmarshalHandleDoubleEncode(bs, source)
35+
return models.JSONUnmarshalHandleDoubleEncode(bs, &source)
3636
}
3737

3838
// ToDB exports an SMTPConfig to a serialized format.

services/auth/source/sspi/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type Source struct {
2727

2828
// FromDB fills up an SSPIConfig from serialized format.
2929
func (cfg *Source) FromDB(bs []byte) error {
30-
return models.JSONUnmarshalHandleDoubleEncode(bs, cfg)
30+
return models.JSONUnmarshalHandleDoubleEncode(bs, &cfg)
3131
}
3232

3333
// ToDB exports an SSPIConfig to a serialized format.

0 commit comments

Comments
 (0)