diff --git a/storage/postgresql.go b/storage/postgresql.go index 29c91e2..9d6aa2e 100644 --- a/storage/postgresql.go +++ b/storage/postgresql.go @@ -129,7 +129,7 @@ func (psql PostgresqlStorage) LocalAuthentication(namespace string, username *st req += fmt.Sprintf(` AND phone_number = '%s'`, *phone_number) } req += ";" - + fmt.Println(req) account.Authentication.Local = &LocalAuth{} err := psql.DbConnection.QueryRow(req).Scan( &account.ID, @@ -145,18 +145,22 @@ func (psql PostgresqlStorage) LocalAuthentication(namespace string, username *st } err = json.Unmarshal(metadata, &account.Metadata) if err != nil { + fmt.Println("one") return nil, err } err = json.Unmarshal(data, &account.Data) if err != nil { + fmt.Println("two") return nil, err } err = json.Unmarshal(emailValidation, &account.Authentication.Local.EmailValidation) if err != nil { + fmt.Println("three") return nil, err } err = json.Unmarshal(phoneValidation, &account.Authentication.Local.PhoneNumberValidation) if err != nil { + fmt.Println("four") return nil, err } return account, nil