mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 16:58:28 +00:00
Merge pull request #1971 from hb9cwp/patch-2
REST API example needs additional parameter
This commit is contained in:
commit
4916567ff6
@ -74,7 +74,7 @@ async def authenticate(
|
|||||||
) -> schemas.Token:
|
) -> schemas.Token:
|
||||||
"""
|
"""
|
||||||
Alternative authentication method using json.
|
Alternative authentication method using json.
|
||||||
Example: curl http://host:port/v3/users/authenticate -d '{"username": "admin", "password": "admin"}'
|
Example: curl http://host:port/v3/users/authenticate -d '{"username": "admin", "password": "admin"} -H "Content-Type: application/json" '
|
||||||
"""
|
"""
|
||||||
|
|
||||||
user = await users_repo.authenticate_user(username=user_credentials.username, password=user_credentials.password)
|
user = await users_repo.authenticate_user(username=user_credentials.username, password=user_credentials.password)
|
||||||
|
Loading…
Reference in New Issue
Block a user