mirror of
https://github.com/status-im/status-go.git
synced 2025-02-06 11:56:01 +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.
|
||||
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
|
||||
|
@ -529,7 +529,7 @@ func createAccountAndLogin(requestJSON string) string {
|
||||
}
|
||||
|
||||
err = request.Validate(&requests.CreateAccountValidation{
|
||||
AllowEmptyDisplayName: false,
|
||||
AllowEmptyDisplayName: true,
|
||||
})
|
||||
if err != nil {
|
||||
return makeJSONResponse(err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user