add basic user authentication
This commit is contained in:
@@ -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: "",
|
||||
|
||||
Reference in New Issue
Block a user