fix oauth_username issue

This commit is contained in:
Christian Grothoff 2021-11-16 19:31:27 +01:00
parent add9edbf5c
commit 422b0ffd4c
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
4 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ COMMENT ON COLUMN wire_targets.h_payto
IS 'Unsalted hash of payto_uri';
COMMENT ON COLUMN wire_targets.kyc_ok
IS 'true if the KYC check was passed successfully';
COMMENT ON COLUMN wire_targets.oauth_username
COMMENT ON COLUMN wire_targets.external_id
IS 'Name of the user that was used for OAuth 2.0-based legitimization';

View File

@ -117,7 +117,7 @@ irbt_cb_table_wire_targets (struct PostgresClosure *pg,
GNUNET_PQ_query_param_auto_from_type (
&td->details.wire_targets.kyc_ok),
GNUNET_PQ_query_param_string (
td->details.wire_targets.oauth_username),
td->details.wire_targets.external_id),
GNUNET_PQ_query_param_end
};

View File

@ -182,8 +182,8 @@ lrbt_cb_table_wire_targets (void *cls,
&td.details.wire_targets.payto_uri),
GNUNET_PQ_result_spec_auto_from_type ("kyc_ok",
&td.details.wire_targets.kyc_ok),
GNUNET_PQ_result_spec_string ("oauth_username",
&td.details.wire_targets.oauth_username),
GNUNET_PQ_result_spec_string ("external_id",
&td.details.wire_targets.external_id),
GNUNET_PQ_result_spec_end
};

View File

@ -218,7 +218,7 @@ struct TALER_EXCHANGEDB_TableData
{
char *payto_uri;
bool kyc_ok;
char *oauth_username;
char *external_id;
} wire_targets;
struct