fix 用户调整为使用名称做主键

add 插件API
This commit is contained in:
jxxghp
2023-06-19 17:04:10 +08:00
parent df0ba221f9
commit c7f897fdcd
11 changed files with 152 additions and 35 deletions

View File

@@ -23,7 +23,7 @@ async def login_access_token(
"""
user = User.authenticate(
db=db,
email=form_data.username,
name=form_data.username,
password=form_data.password
)
if not user: