We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d1b1fb commit b1be263Copy full SHA for b1be263
fastapi_user_auth/auth/models.py
@@ -8,6 +8,8 @@
8
from sqlmodel.ext.asyncio.session import AsyncSession
9
from sqlmodel.sql.expression import SelectOfScalar
10
11
+SelectOfScalar.inherit_cache = True
12
+
13
14
class SQLModelTable(SQLModel):
15
id: int = Field(default=None, primary_key=True, nullable=False)
@@ -59,9 +61,11 @@ class UserUsername(SQLModel):
59
61
sa_column=Column(String(32), unique=True, index=True, nullable=False)
60
62
)
63
-class PasswordStr(SecretStr,str):
64
65
+class PasswordStr(SecretStr, str):
66
pass
67
68
69
class UserPassword(SQLModel):
70
password: PasswordStr = Field(
71
title='密码', max_length=128,
0 commit comments