From 3e0b1b273007ba8fae3c836d097a3880d12fecb9 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 21 Jan 2025 13:29:19 -0500 Subject: [PATCH] chore(onbaording)_: enable creating accounts without a displayName (#6242) --- api/geth_backend.go | 2 +- mobile/status.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/geth_backend.go b/api/geth_backend.go index a0e6e6820..a75373af7 100644 --- a/api/geth_backend.go +++ b/api/geth_backend.go @@ -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. func (b *GethStatusBackend) CreateAccountAndLogin(request *requests.CreateAccount, opts ...params.Option) (*multiaccounts.Account, error) { validation := &requests.CreateAccountValidation{ - AllowEmptyDisplayName: false, + AllowEmptyDisplayName: true, } if err := request.Validate(validation); err != nil { return nil, err diff --git a/mobile/status.go b/mobile/status.go index 1587f4353..e7e73824d 100644 --- a/mobile/status.go +++ b/mobile/status.go @@ -529,7 +529,7 @@ func createAccountAndLogin(requestJSON string) string { } err = request.Validate(&requests.CreateAccountValidation{ - AllowEmptyDisplayName: false, + AllowEmptyDisplayName: true, }) if err != nil { return makeJSONResponse(err)