From 0f812746b7fd9dfeef41e329af5215772672689a Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Mon, 7 Aug 2023 01:25:54 -0700 Subject: [feature] Allow full BCP 47 in language inputs (#2067) * Allow full BCP 47 in language inputs Fixes #2066 * Fuse validation and normalization for languages * Remove outdated comment line * Move post language canonicalization test --- internal/processing/account/create.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/processing/account/create.go') diff --git a/internal/processing/account/create.go b/internal/processing/account/create.go index 1a172b865..32a59d1ef 100644 --- a/internal/processing/account/create.go +++ b/internal/processing/account/create.go @@ -34,8 +34,7 @@ import ( // Create processes the given form for creating a new account, // returning an oauth token for that account if successful. // -// Fields on the form should have already been validated by the -// caller, before this function is called. +// Precondition: the form's fields should have already been validated and normalized by the caller. func (p *Processor) Create( ctx context.Context, appToken oauth2.TokenInfo, -- cgit v1.2.3