fix: Prevent Creating Groups With No Name (#2803)

* prevent creating groups with no name

* add db fix fro groups with no name

* moved non-actionable fix logs to debug level

* 🧹

* use id as default name to avoid collisions

* simplified group name constraint

* removed redundant import
This commit is contained in:
Michael Genson
2023-12-11 12:20:57 -06:00
committed by GitHub
parent c3ec875d59
commit 8311db7e60
4 changed files with 54 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ class ChangePassword(MealieModel):
class GroupBase(MealieModel):
name: str
name: constr(strip_whitespace=True, min_length=1) # type: ignore
class Config:
orm_mode = True