First stab at a form submit off an alpine.js form. Honestly not great. It's a lot of code already for even less functionality.

This commit is contained in:
Zed A. Shaw 2025-07-27 00:29:27 -04:00
parent e4153fd74a
commit 3fd8169d83
7 changed files with 46 additions and 26 deletions

View file

@ -8,7 +8,7 @@ type Login struct {
}
type User struct {
Id int `db:"id" json:"id" validate:"isdefault"`
Id int `db:"id" json:"id" validate:"numeric"`
Username string `db:"username" validate:"required,max=30"`
Email string `db:"email" validate:"required,email,max=128"`
Password string `db:"password" validate:"required,min=8,max=64"`