mirror of
https://github.com/status-im/status-go.git
synced 2025-02-11 14:26:53 +00:00
chore(onbaording)_: enable creating accounts without a displayName (#6242)
This commit is contained in:
parent
9beefed89c
commit
3e0b1b2730
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user