diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-07-01 13:35:58 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-07-01 13:35:58 +0100 |
commit | 8e7947926cd00a05f90a9d0bfdc29dcd2dc9ab7a (patch) | |
tree | 8bd7578f84822cf3313a6a199735909082034a92 /userapi | |
parent | 42dd96242574866378bb95d92bc0c7fdf3dbabf6 (diff) |
Fix Yggdrasil gobind build, set display name at registration
Diffstat (limited to 'userapi')
-rw-r--r-- | userapi/internal/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/userapi/internal/api.go b/userapi/internal/api.go index b081eca4..1d10d1d8 100644 --- a/userapi/internal/api.go +++ b/userapi/internal/api.go @@ -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 |