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