This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 511
SECURITY_UNAUTHORIZED_VIEW
doesn't default to None
#724
Labels
Comments
@sunqingyao thank you reporting. Indeed it looks like an inconsistency between docs and code. Do you prefer the default to |
Personally I prefer a simple
|
Let's change the |
Great! :smiles: |
jirikuncar
added a commit
to jirikuncar/flask-security
that referenced
this issue
Jan 5, 2018
* Changes default to `None` to be consistent with documentation. (closes pallets-eco#724)
jwag956
referenced
this issue
in pallets-eco/flask-security
May 8, 2019
* Changes default to `None` to be consistent with documentation. (closes #724)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there!
The document says
SECURITY_UNAUTHORIZED_VIEW
defaults toNone
, but actually it's default tolambda: None
.Since
lambda: None
is interpreted as true, by default_get_unauthorized_view()
won'tabort(403)
, but the docs says it should.The text was updated successfully, but these errors were encountered: