Fixed the example in the documentation of the login_required decorator.
This commit is contained in:
parent
d78093ab53
commit
b348c872dc
@ -62,6 +62,7 @@ class DigestAuth:
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
@app.get("/admin")
|
||||||
@auth.login_required
|
@auth.login_required
|
||||||
def admin():
|
def admin():
|
||||||
return f"Hello, {g.user.username}!"
|
return f"Hello, {g.user.username}!"
|
||||||
|
Loading…
Reference in New Issue
Block a user