app.utils.errors

Module Contents

Functions

handle_unauthenticated_request()

To avoid returning the login page html when a route is used by geonature API

app.utils.errors.handle_unauthenticated_request()[source]

To avoid returning the login page html when a route is used by geonature API this function overrides LoginManager.unauthorized() from flask-login .

Returns

flask.Response

response