This commit is contained in:
Brandon Thomas committed 2026-01-30 20:39:04 -05:00
1 parent aa66d77a8a
commit 5b58560170
1 file changed
+4 -4
@@ -15,7 +15,7 @@ use tokens::tokens::users::UserToken;
/// The password hash field is nullable, so we can't leave it null/empty.
const SSO_PASSWORD : &str = "*";
pub struct CreateAccountFromGoogleSsoArgs<'a> {
pub struct CreateAccountFromStripeCheckoutArgs<'a> {
// NB: Username will likely be generated by our code, not the user.
pub username: &'a str,
pub display_name: &'a str,
@@ -31,8 +31,8 @@ pub struct CreateAccountFromGoogleSsoArgs<'a> {
pub maybe_feature_flags: Option<&'a str>,
}
pub async fn create_account_from_google_sso(
args: CreateAccountFromGoogleSsoArgs<'_>,
pub async fn create_account_from_stripe_checkout(
args: CreateAccountFromStripeCheckoutArgs<'_>,
transactor: Transactor<'_, '_>,
) -> Result<UserToken, CreateAccountError>
{
@@ -56,7 +56,7 @@ pub async fn create_account_from_google_sso(
username_is_not_customized: true,
// Stripe checkout users have NO REAL EMAIL ADDRESS yet.
// Stripe will tell us what their email address is once
// Stripe will tell us what their email address is once
// they complete the checkout (or the user can update it,
// and their write wins.)
email_address: args.email_address,