diff --git a/CHANGES.rst b/CHANGES.rst index a7982db7..38b00268 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,7 +12,7 @@ Features ++++++++ - (:issue:`667`) Expose form instantiation. See :ref:`form_instantiation`. -- (:issue:`693`) Option to encrypt recovery codes at rest. +- (:issue:`693`) Option to encrypt recovery codes. - (:pr:`716`) Support for authentication via 'social' oauth. - (:pr:`721`) Support for Python 3.11 @@ -26,7 +26,7 @@ Fixes - (:issue:`699`) Properly propagate `?next=/xx` - the verify, webauthn, and unified signin endpoints, that had multiple redirects, needed fixes. - (:pr:`696`) Add Hungarian translations. (xQwexx) -- (:issue:`701`) Two factor redirects ignore url_prefix. Added a `SECURITY_TWO_FACTOR_ERROR_VIEW` +- (:issue:`701`) Two factor redirects ignored url_prefix. Added a :py:data:`SECURITY_TWO_FACTOR_ERROR_VIEW` configuration option. - (:issue:`704`) Add configurations for static folder/URL and make sure templates reference blueprint relative static folder. @@ -34,14 +34,14 @@ Fixes double quotes. - (:issue:`690`) Send entire context to MailUtil::send_mail (patrickyan) - (:pr:`728`) Support for Flask-Babel 3.0.0 -- (:issue:`692`) Add configuration option `SECURITY_TWO_FACTOR_POST_SETUP_VIEW` which +- (:issue:`692`) Add configuration option :py:data:`SECURITY_TWO_FACTOR_POST_SETUP_VIEW` which is redirected to upon successful change of a two factor method. - (:pr:`733`) The ability to pass in a LoginManager instance which was deprecated in 5.0 has been removed. -- (:issue:`732`) If `SECURITY_USERNAME_REQUIRED` was ``True`` then users couldn't login +- (:issue:`732`) If :py:data:`SECURITY_USERNAME_REQUIRED` was ``True`` then users couldn't login with just an email. -- (:issue:`734`) If `SECURITY_USERNAME_ENABLE` is set, bleach is a requirement. -- (:pr:`xxx`) The default_unauthz_handler now takes a function name, not the function! +- (:issue:`734`) If :py:data:`SECURITY_USERNAME_ENABLE` is set, bleach is a requirement. +- (:pr:`736`) The unauthz_handler now takes a function name, not the function! Backwards Compatibility Concerns +++++++++++++++++++++++++++++++++ @@ -49,7 +49,7 @@ Backwards Compatibility Concerns - Each form class used to be set as an attribute on the Security object. With the new form instantiation model, they no longer are. - After a successful update/change of a two-factor method, the user was redirected to - `SECURITY_POST_LOGIN_VIEW`. Now it redirects to `SECURITY_TWO_FACTOR_POST_SETUP_VIEW` + :py:data:`SECURITY_POST_LOGIN_VIEW`. Now it redirects to :py:data:`SECURITY_TWO_FACTOR_POST_SETUP_VIEW` which defaults to `".two_factor_setup"`. - The :meth:`.Security.unauthz_handler` now takes a function name - not the function - which never made sense. diff --git a/flask_security/translations/af_ZA/LC_MESSAGES/flask_security.po b/flask_security/translations/af_ZA/LC_MESSAGES/flask_security.po index 438ce158..58157a25 100644 --- a/flask_security/translations/af_ZA/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/af_ZA/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security-Too 4.0.0\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Michael Bosch \n" "Language: af_ZA\n" @@ -549,7 +549,7 @@ msgstr "Stel op deur midde van verifikasie toep (bv. google, lastpass, authy)" msgid "Set up using SMS" msgstr "Stel op deur midde van SMS" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/ca_ES/LC_MESSAGES/flask_security.po b/flask_security/translations/ca_ES/LC_MESSAGES/flask_security.po index 42d11325..028fa65a 100644 --- a/flask_security/translations/ca_ES/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/ca_ES/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 3.1.0\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2019-06-16 00:12+0200\n" "Last-Translator: Orestes Sanchez \n" "Language: ca_ES\n" @@ -551,7 +551,7 @@ msgstr "" msgid "Set up using SMS" msgstr "" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/da_DK/LC_MESSAGES/flask_security.po b/flask_security/translations/da_DK/LC_MESSAGES/flask_security.po index 8aaa78f5..f3ced70e 100644 --- a/flask_security/translations/da_DK/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/da_DK/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.1.0\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2017-03-23 14:04+0100\n" "Last-Translator: Leonhard Printz \n" "Language: da_DK\n" @@ -549,7 +549,7 @@ msgstr "" msgid "Set up using SMS" msgstr "" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/de_DE/LC_MESSAGES/flask_security.po b/flask_security/translations/de_DE/LC_MESSAGES/flask_security.po index 95190d34..a174211d 100644 --- a/flask_security/translations/de_DE/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/de_DE/LC_MESSAGES/flask_security.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 4.1.3\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2022-04-05 13:50+0200\n" "Last-Translator: Pascua Theus \n" "Language: de_DE\n" @@ -566,7 +566,7 @@ msgstr "Einrichtung via Authentisierungs-App" msgid "Set up using SMS" msgstr "Einrichtung via SMS" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "Deaktiviere Zwei-Faktor-Authentisierung" diff --git a/flask_security/translations/es_ES/LC_MESSAGES/flask_security.po b/flask_security/translations/es_ES/LC_MESSAGES/flask_security.po index 68b9d3d2..3c48e8e4 100644 --- a/flask_security/translations/es_ES/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/es_ES/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2017-08-25 17:21+0200\n" "Last-Translator: Martin Mozos \n" "Language: es_ES\n" @@ -558,7 +558,7 @@ msgstr "" msgid "Set up using SMS" msgstr "Configurar usando SMS" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/eu_ES/LC_MESSAGES/flask_security.po b/flask_security/translations/eu_ES/LC_MESSAGES/flask_security.po index 9b0780d3..48ead0e6 100644 --- a/flask_security/translations/eu_ES/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/eu_ES/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 4.0.0\n" "Report-Msgid-Bugs-To: jwag956@github.com\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2020-11-28 13:41+0100\n" "Last-Translator: Martin Mozos \n" "Language: eu_ES\n" @@ -551,7 +551,7 @@ msgstr "" msgid "Set up using SMS" msgstr "Konfiguratu SMS bidez" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/flask_security.pot b/flask_security/translations/flask_security.pot index 0024f9b1..cd13eb82 100644 --- a/flask_security/translations/flask_security.pot +++ b/flask_security/translations/flask_security.pot @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Flask-Security 5.0.0\n" +"Project-Id-Version: Flask-Security 5.1.0\n" "Report-Msgid-Bugs-To: jwag956@github.com\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -538,7 +538,7 @@ msgstr "" msgid "Set up using SMS" msgstr "" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/fr_FR/LC_MESSAGES/flask_security.po b/flask_security/translations/fr_FR/LC_MESSAGES/flask_security.po index 418de8af..c9d93c81 100644 --- a/flask_security/translations/fr_FR/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/fr_FR/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2017-06-08 10:13+0200\n" "Last-Translator: Alexandre Bulté \n" "Language: fr_FR\n" @@ -551,7 +551,7 @@ msgstr "" msgid "Set up using SMS" msgstr "Configurer par SMS" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "Désactiver l'authentification à deux facteurs" diff --git a/flask_security/translations/hu_HU/LC_MESSAGES/flask_security.po b/flask_security/translations/hu_HU/LC_MESSAGES/flask_security.po index ba73b29c..c5c1ef5d 100644 --- a/flask_security/translations/hu_HU/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/hu_HU/LC_MESSAGES/flask_security.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 4.0.0\n" "Report-Msgid-Bugs-To: jwag956@github.com\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: hu_HU\n" @@ -564,7 +564,7 @@ msgstr "Beállítás hitelesítő alkalmazás segítségével (pl. google, lastp msgid "Set up using SMS" msgstr "Beállítás SMS-sel" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "Kétfaktoros hitelesítés letiltása" diff --git a/flask_security/translations/hy_AM/LC_MESSAGES/flask_security.po b/flask_security/translations/hy_AM/LC_MESSAGES/flask_security.po index 71ea2f18..e5c9deaa 100644 --- a/flask_security/translations/hy_AM/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/hy_AM/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 4.0.0\n" "Report-Msgid-Bugs-To: jwag956@github.com\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2020-12-01 11:47+0400\n" "Last-Translator: FULL NAME \n" "Language: hy_AM\n" @@ -550,7 +550,7 @@ msgstr "" msgid "Set up using SMS" msgstr "Կարգավորեք օգտագործելով SMS" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/ja_JP/LC_MESSAGES/flask_security.po b/flask_security/translations/ja_JP/LC_MESSAGES/flask_security.po index 220fa895..49e001a2 100644 --- a/flask_security/translations/ja_JP/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/ja_JP/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2018-01-25 14:12+0900\n" "Last-Translator: \n" "Language: ja\n" @@ -540,7 +540,7 @@ msgstr "" msgid "Set up using SMS" msgstr "" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/nl_NL/LC_MESSAGES/flask_security.po b/flask_security/translations/nl_NL/LC_MESSAGES/flask_security.po index 7cb3f95d..cf5d9a7b 100644 --- a/flask_security/translations/nl_NL/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/nl_NL/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2017-05-01 17:52+0200\n" "Last-Translator: FULL NAME \n" "Language: nl_NL\n" @@ -553,7 +553,7 @@ msgstr "" msgid "Set up using SMS" msgstr "" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/pl_PL/LC_MESSAGES/flask_security.po b/flask_security/translations/pl_PL/LC_MESSAGES/flask_security.po index ea40565f..4927e24d 100644 --- a/flask_security/translations/pl_PL/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/pl_PL/LC_MESSAGES/flask_security.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2020-11-28 10:19+0100\n" "Last-Translator: Kamil Daniewski \n" "Language: pl_PL\n" @@ -557,7 +557,7 @@ msgstr "" msgid "Set up using SMS" msgstr "Ustaw przy pomocy wiadomości SMS" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/pt_BR/LC_MESSAGES/flask_security.po b/flask_security/translations/pt_BR/LC_MESSAGES/flask_security.po index b078f885..af8d2ab9 100644 --- a/flask_security/translations/pt_BR/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/pt_BR/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2017-09-27 23:39-0300\n" "Last-Translator: José Neto \n" "Language: pt_BR\n" @@ -547,7 +547,7 @@ msgstr "" msgid "Set up using SMS" msgstr "" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/pt_PT/LC_MESSAGES/flask_security.po b/flask_security/translations/pt_PT/LC_MESSAGES/flask_security.po index 6085976d..770fdb32 100644 --- a/flask_security/translations/pt_PT/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/pt_PT/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2018-04-27 14:00+0100\n" "Last-Translator: Micael Grilo \n" "Language: pt_PT\n" @@ -550,7 +550,7 @@ msgstr "" msgid "Set up using SMS" msgstr "" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/ru_RU/LC_MESSAGES/flask_security.po b/flask_security/translations/ru_RU/LC_MESSAGES/flask_security.po index 5c0254c9..2673f77a 100644 --- a/flask_security/translations/ru_RU/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/ru_RU/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2022-04-10 23:19+0300\n" "Last-Translator: Ivan Fedorov \n" "Language: ru_RU\n" @@ -558,7 +558,7 @@ msgstr "" msgid "Set up using SMS" msgstr "Настроить с помощью СМС" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "Отключить двухфакторную аутентификацию" diff --git a/flask_security/translations/tr_TR/LC_MESSAGES/flask_security.po b/flask_security/translations/tr_TR/LC_MESSAGES/flask_security.po index 5bcd2eb9..2690d744 100644 --- a/flask_security/translations/tr_TR/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/tr_TR/LC_MESSAGES/flask_security.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2018-12-20 18:48+0300\n" "Last-Translator: Ecmel B. Canlıer \n" "Language: tr_TR\n" @@ -545,7 +545,7 @@ msgstr "" msgid "Set up using SMS" msgstr "" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/flask_security/translations/zh_Hans_CN/LC_MESSAGES/flask_security.po b/flask_security/translations/zh_Hans_CN/LC_MESSAGES/flask_security.po index d2ed7e89..f84e9e95 100644 --- a/flask_security/translations/zh_Hans_CN/LC_MESSAGES/flask_security.po +++ b/flask_security/translations/zh_Hans_CN/LC_MESSAGES/flask_security.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Flask-Security 2.0.1\n" "Report-Msgid-Bugs-To: info@inveniosoftware.org\n" -"POT-Creation-Date: 2023-01-21 11:58-0800\n" +"POT-Creation-Date: 2023-01-23 15:51-0800\n" "PO-Revision-Date: 2018-08-02 19:55+0800\n" "Last-Translator: SteinKuo \n" "Language: zh_CN\n" @@ -541,7 +541,7 @@ msgstr "设置一个认证的app(例如:google、lastpass、authy)" msgid "Set up using SMS" msgstr "用SMS进行设置\"" -#: flask_security/forms.py:745 +#: flask_security/forms.py:753 msgid "Disable two factor authentication" msgstr "" diff --git a/setup.cfg b/setup.cfg index 48928bc0..67e15820 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,7 +36,7 @@ domain = flask_security [extract_messages] project= Flask-Security -version=5.0.0 +version=5.1.0 msgid_bugs_address = jwag956@github.com mapping-file = babel.ini output-file = flask_security/translations/flask_security.pot