Allow @ in usernames (#742)

This commit is contained in:
Jonas Plum
2023-02-05 01:45:33 +01:00
committed by GitHub
parent 188ca256af
commit aee0be7a68
5 changed files with 40 additions and 21 deletions

View File

@@ -93,7 +93,7 @@ func (db *Database) UserCreate(ctx context.Context, newUser *model.UserForm) (*m
var doc model.User
newctx := driver.WithReturnNew(ctx, &doc)
meta, err := db.userCollection.CreateDocument(ctx, newctx, strcase.ToKebab(newUser.ID), toUser(newUser, sha256Hash))
meta, err := db.userCollection.CreateDocument(ctx, newctx, newUser.ID, toUser(newUser, sha256Hash))
if err != nil {
return nil, err
}