Updated User model fields

This commit is contained in:
2022-09-28 16:14:30 +02:00
parent 4f8d553923
commit db1bee79ac
4 changed files with 4 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ func Register(ctx *fiber.Ctx) error {
return err
}
user := models.User{ID: database.GetID(), Username: body.Username, Password: body.Password, Email: body.Email}
user := models.User{ID: database.GetID(), Login: body.Username, Password: body.Password, Email: body.Email}
result := db.Create(&user)
if result.Error != nil {
return result.Error