Fix Yggdrasil gobind build, set display name at registration

This commit is contained in:
Neil Alexander 2020-07-01 13:35:58 +01:00
parent 42dd962425
commit 8e7947926c
3 changed files with 20 additions and 0 deletions

View file

@ -85,6 +85,11 @@ func (a *UserInternalAPI) PerformAccountCreation(ctx context.Context, req *api.P
}
return nil
}
if err = a.AccountDB.SetDisplayName(ctx, req.Localpart, req.Localpart); err != nil {
return err
}
res.AccountCreated = true
res.Account = acc
return nil