diff --git a/src/dispatch/auth/models.py b/src/dispatch/auth/models.py index a1159cba5554..020a98b8990a 100644 --- a/src/dispatch/auth/models.py +++ b/src/dispatch/auth/models.py @@ -158,7 +158,7 @@ class UserUpdate(DispatchBase): organizations: Optional[List[UserOrganization]] role: Optional[str] = Field(None, nullable=True) - @validator("password", pre=True, always=True) + @validator("password", pre=True) def hash(cls, v): return hash_password(str(v))