Skip to content

Commit

Permalink
Final doc tweaks and messages generation for 5.1.0 (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwag956 authored Jan 24, 2023
1 parent 56573f2 commit 8e56e2b
Show file tree
Hide file tree
Showing 20 changed files with 45 additions and 45 deletions.
14 changes: 7 additions & 7 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -26,30 +26,30 @@ 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.
- (:issue:`709`) Make (some) templates look better by using single quotes instead of
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
+++++++++++++++++++++++++++++++++

- 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security-Too 4.0.0\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: af_ZA\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 3.1.0\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: ca_ES\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.1.0\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: da_DK\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 4.1.3\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: de_DE\n"
Expand Down Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: es_ES\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 4.0.0\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: eu_ES\n"
Expand Down Expand Up @@ -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 ""

Expand Down
6 changes: 3 additions & 3 deletions flask_security/translations/flask_security.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]\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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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é <[email protected]>\n"
"Language: fr_FR\n"
Expand Down Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 4.0.0\n"
"Report-Msgid-Bugs-To: [email protected]\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 <EMAIL@ADDRESS>\n"
"Language: hu_HU\n"
Expand Down Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 4.0.0\n"
"Report-Msgid-Bugs-To: [email protected]\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 <EMAIL@ADDRESS>\n"
"Language: hy_AM\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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 <EMAIL@ADDRESS>\n"
"Language: nl_NL\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: pl_PL\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: pt_BR\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: pt_PT\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: ru_RU\n"
Expand Down Expand Up @@ -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 "Отключить двухфакторную аутентификацию"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: tr_TR\n"
Expand Down Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Flask-Security 2.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\n"
"Language: zh_CN\n"
Expand Down Expand Up @@ -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 ""

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ domain = flask_security

[extract_messages]
project= Flask-Security
version=5.0.0
version=5.1.0
msgid_bugs_address = [email protected]
mapping-file = babel.ini
output-file = flask_security/translations/flask_security.pot
Expand Down

0 comments on commit 8e56e2b

Please sign in to comment.