add basic user authentication

This commit is contained in:
2025-10-01 21:43:37 +02:00
parent 57355fe9ac
commit f20e177480
16 changed files with 338 additions and 51 deletions

View File

@@ -13,7 +13,7 @@ func (b bookPostCreate) toBook() model.Book {
}
}
func (u userPostCreate) toUser() (model.User, error) {
func (u userSignup) toUser() (model.User, error) {
user := model.User{
Name: u.Username,
Password: "",