This commit is contained in:
parent
c7ad85b6c6
commit
b1cbe02cc8
2
main.py
2
main.py
@ -44,7 +44,7 @@ def login():
|
|||||||
elif request.method == "POST":
|
elif request.method == "POST":
|
||||||
client = Client(VAULT_ADDR)
|
client = Client(VAULT_ADDR)
|
||||||
username, password = request.form["username"], request.form["password"]
|
username, password = request.form["username"], request.form["password"]
|
||||||
client.auth_userpass(username, password)
|
client.auth.userpass.login(username, password)
|
||||||
assert client.is_authenticated()
|
assert client.is_authenticated()
|
||||||
|
|
||||||
role = request.form.get("role")
|
role = request.form.get("role")
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
flask
|
flask
|
||||||
hvac<1.0.0
|
hvac>=1.0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user