add org structure
This commit is contained in:
@@ -102,7 +102,7 @@ func (h *Handler) CreateUser(c echo.Context) (err error) {
|
||||
|
||||
user.Password = fmt.Sprintf("%x", sha256.Sum256([]byte(user.Password)))
|
||||
|
||||
tx := h.DB.Omit("ID", "CreatedAt", "UpdatedAt", "DeletedAt").Create(user)
|
||||
tx := h.DB.Create(user)
|
||||
|
||||
if tx.RowsAffected == 0 {
|
||||
return c.NoContent(http.StatusBadGateway)
|
||||
|
||||
Reference in New Issue
Block a user