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:
parent
e4153fd74a
commit
3fd8169d83
7 changed files with 46 additions and 26 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue