Piccolo-api

Latest version: v1.4.0

Safety actively analyzes 630169 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 21

0.38.0

------

Added ``read_only`` option to ``change_password`` and ``register`` endpoints.

This is for Piccolo Admin's ``read_only`` mode.

-------------------------------------------------------------------------------

0.37.2

------

Changed a parameter name used in the ``change_password`` endpoint to be less
ambiguous (``old_password`` -> ``current_password``).

-------------------------------------------------------------------------------

0.37.1

------

Changed a parameter name used in the ``change_password`` endpoint to be less
ambiguous (``confirm_password`` -> ``confirm_new_password``).

-------------------------------------------------------------------------------

0.37.0

------

Added a ``change_password`` endpoint (courtesy sinisaos).

See the `demo project <https://github.com/piccolo-orm/piccolo_api/tree/master/example_projects/change_password_demo>`_ for a full example.

-------------------------------------------------------------------------------

0.36.0

------

The ``session_login``, ``session_logout``, and ``register`` endpoints can now
have their CSS styles easily customised, to make them match the rest of the
application.

.. code-block:: python

from fastapi import FastAPI
from piccolo_api.session_auth.endpoints import register
from piccolo_api.shared.auth.styles import Styles

app = FastAPI()

app.mount(
'/register/',
register(
styles=Styles(background_color='black')
)
)

-------------------------------------------------------------------------------

0.35.0

------

It is now trivially easy to add CAPTCHA support to the ``register`` and
``session_login`` endpoints, to provide protection against bots. Just sign up
for an account with hCaptcha or reCAPTCHA, and do the following:

.. code-block:: python

from fastapi import FastAPI
from piccolo_api.session_auth.endpoints import register
from piccolo_api.shared.auth.captcha import hcaptcha

app = FastAPI()

To use hCaptcha:
app.mount(
'/register/',
register(
captcha=hcaptcha(
site_key='my-site-key',
secret_key='my-secret-key',
)
)
)

-------------------------------------------------------------------------------

Page 6 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.