chore(onbaording)_: enable creating accounts without a displayName (#6242)

This commit is contained in:
Jonathan Rainville 2025-01-21 13:29:19 -05:00 committed by GitHub
parent 9beefed89c
commit 3e0b1b2730
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1750,7 +1750,7 @@ func (b *GethStatusBackend) getDerivedAddresses(id string) (map[string]generator
// NOTE: requests.CreateAccount is used for public, params.Option maybe used for internal usage. // NOTE: requests.CreateAccount is used for public, params.Option maybe used for internal usage.
func (b *GethStatusBackend) CreateAccountAndLogin(request *requests.CreateAccount, opts ...params.Option) (*multiaccounts.Account, error) { func (b *GethStatusBackend) CreateAccountAndLogin(request *requests.CreateAccount, opts ...params.Option) (*multiaccounts.Account, error) {
validation := &requests.CreateAccountValidation{ validation := &requests.CreateAccountValidation{
AllowEmptyDisplayName: false, AllowEmptyDisplayName: true,
} }
if err := request.Validate(validation); err != nil { if err := request.Validate(validation); err != nil {
return nil, err return nil, err

View File

@ -529,7 +529,7 @@ func createAccountAndLogin(requestJSON string) string {
} }
err = request.Validate(&requests.CreateAccountValidation{ err = request.Validate(&requests.CreateAccountValidation{
AllowEmptyDisplayName: false, AllowEmptyDisplayName: true,
}) })
if err != nil { if err != nil {
return makeJSONResponse(err) return makeJSONResponse(err)