diff --git a/gluon/packages/dal b/gluon/packages/dal index e595b921..db943c12 160000 --- a/gluon/packages/dal +++ b/gluon/packages/dal @@ -1 +1 @@ -Subproject commit e595b921b02173bb804a061faa6d54773f18cd81 +Subproject commit db943c12cbb47790527ab9ef6b31c6463a02d701 diff --git a/gluon/packages/yatl b/gluon/packages/yatl index 468c093a..5deb403a 160000 --- a/gluon/packages/yatl +++ b/gluon/packages/yatl @@ -1 +1 @@ -Subproject commit 468c093ab094a274f200cc9a94b338e1687bce41 +Subproject commit 5deb403a9e45f617588f02cd8f7682b3f98571b4 diff --git a/gluon/tools.py b/gluon/tools.py index 61db6e2a..23c99ff1 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -3726,7 +3726,7 @@ class Auth(AuthAPI): are passed to the constructor of class AuthJWT. Look there for documentation. """ if not self.jwt_handler: - raise HTTP(400, "Not authorized") + raise HTTP(401, "Not authorized") else: rtn = self.jwt_handler.jwt_token_manager() raise HTTP(200, rtn, cookies=None, **current.response.headers) @@ -3820,7 +3820,7 @@ class Auth(AuthAPI): def allows_jwt(self, otherwise=None): if not self.jwt_handler: - raise HTTP(400, "Not authorized") + raise HTTP(401, "Not authorized") else: return self.jwt_handler.allows_jwt(otherwise=otherwise)