Unverified Commit 863f5b18 authored by Nicola Soranzo's avatar Nicola Soranzo Committed by GitHub
Browse files

Merge pull request #14342 from nsoranzo/release_22.05_fix_whoami

[22.05] Fix ``GET /api/whoami`` when ``last_password_change`` is NULL
parents 057f54ae 81c5c2fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ class UserModel(Model):
    email: str = Field(title="Email", description="User email")
    active: bool = Field(title="Active", description="User is active")
    deleted: bool = Field(title="Deleted", description="User is deleted")
    last_password_change: datetime = Field(title="Last password change", description="")
    last_password_change: Optional[datetime] = Field(title="Last password change", description="")
    model_class: str = ModelClassField(USER_MODEL_CLASS_NAME)