mirror of
https://github.com/grey-cat-1908/formaptix-server.git
synced 2024-11-11 18:57:27 +03:00
get user method
This commit is contained in:
parent
af5b759c16
commit
d36af3ad73
1 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,11 @@ async def login(auth: models.Auth) -> models.Token:
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@router.post("/get")
|
||||||
|
async def get(user: User) -> models.User:
|
||||||
|
return models.User(id=user.id, username=user.username)
|
||||||
|
|
||||||
|
|
||||||
@router.put("/update/password")
|
@router.put("/update/password")
|
||||||
async def update_password(user: User, new: models.UpdatePassword):
|
async def update_password(user: User, new: models.UpdatePassword):
|
||||||
if len(new.password.strip()) == 0:
|
if len(new.password.strip()) == 0:
|
||||||
|
|
Loading…
Reference in a new issue