Skip to content

Commit

Permalink
feat: Bundle pwd confirmation as an interceptor
Browse files Browse the repository at this point in the history
We are migrating to in-request password confirmation, so it makes sens to have all that logic in this repository.

Most of the code is a copy-past from the `@nc/password-confirmation` repository.

Then there is the addition of a new interceptor to use the pwd confirmation logic.

Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Nov 6, 2024
1 parent 23e80a6 commit cdb1c48
Show file tree
Hide file tree
Showing 51 changed files with 4,705 additions and 426 deletions.
35 changes: 35 additions & 0 deletions l10n/ar.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Translators:
# Joas Schilling, 2024
# Ali <[email protected]>, 2024
#
msgid ""
msgstr ""
"Last-Translator: Ali <[email protected]>, 2024\n"
"Language-Team: Arabic (https://app.transifex.com/nextcloud/teams/64236/ar/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: ar\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. TRANSLATORS: This is a status message, shown when the system is checking
#. the users password
msgid "Checking password …"
msgstr "التحقُّق من كلمة المرور ..."

msgid "Confirm"
msgstr "تأكيد"

msgid "Confirm your password"
msgstr "أكِّد على كلمة المرور"

msgid "Password"
msgstr "كلمة المرور"

msgid "Please enter your password"
msgstr "أدخِل كلمة مرورك من فضلك"

msgid "This action needs authentication"
msgstr "هذا الإجراء يتطلب التحقُّق من الشخصية"

msgid "Wrong password"
msgstr "كلمة مرور غير مٌطابقة"
35 changes: 35 additions & 0 deletions l10n/ast.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Translators:
# Joas Schilling, 2024
# enolp <[email protected]>, 2024
#
msgid ""
msgstr ""
"Last-Translator: enolp <[email protected]>, 2024\n"
"Language-Team: Asturian (https://app.transifex.com/nextcloud/teams/64236/ast/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: ast\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. TRANSLATORS: This is a status message, shown when the system is checking
#. the users password
msgid "Checking password …"
msgstr "Comprobando la contraseña…"

msgid "Confirm"
msgstr "Confirmación"

msgid "Confirm your password"
msgstr "Confirma la contraseña"

msgid "Password"
msgstr "Contraseña"

msgid "Please enter your password"
msgstr "Introduz la contraseña"

msgid "This action needs authentication"
msgstr "Esta aición precisa l'autenticación"

msgid "Wrong password"
msgstr "La contraseña ye incorreuta"
29 changes: 29 additions & 0 deletions l10n/az.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Translators:
# Rashad Aliyev <[email protected]>, 2023
#
msgid ""
msgstr ""
"Last-Translator: Rashad Aliyev <[email protected]>, 2023\n"
"Language-Team: Azerbaijani (https://app.transifex.com/nextcloud/teams/64236/az/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: az\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgid "Confirm"
msgstr "Təsdiq edin"

msgid "Confirm your password"
msgstr "Parolunuzu təsdiq edin"

msgid "Password"
msgstr "Parol"

msgid "Password confirmation dialog already mounted"
msgstr "Parolun təsdiqi dialoqu artıq quraşdırılıb"

msgid "This action needs authentication"
msgstr "Bu əməliyyat autentifikasiya tələb edir"

msgid "Wrong password"
msgstr "Səhv parol"
34 changes: 34 additions & 0 deletions l10n/be.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Translators:
# Kapatych, 2024
#
msgid ""
msgstr ""
"Last-Translator: Kapatych, 2024\n"
"Language-Team: Belarusian (https://app.transifex.com/nextcloud/teams/64236/be/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: be\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"

#. TRANSLATORS: This is a status message, shown when the system is checking
#. the users password
msgid "Checking password …"
msgstr "Праверка пароля…"

msgid "Confirm"
msgstr "Пацвердзіць"

msgid "Confirm your password"
msgstr "Пацвердзіць пароль"

msgid "Password"
msgstr "Пароль"

msgid "Please enter your password"
msgstr "Калі ласка, увядзіце ваш пароль"

msgid "This action needs authentication"
msgstr "Гэта дзеянне патрабуе аўтэнтыфікацыі"

msgid "Wrong password"
msgstr "Памылковы пароль"
34 changes: 34 additions & 0 deletions l10n/ca.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Translators:
# Leandro Navarro <[email protected]>, 2024
#
msgid ""
msgstr ""
"Last-Translator: Leandro Navarro <[email protected]>, 2024\n"
"Language-Team: Catalan (https://app.transifex.com/nextcloud/teams/64236/ca/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. TRANSLATORS: This is a status message, shown when the system is checking
#. the users password
msgid "Checking password …"
msgstr "S'està comprovant la contrasenya …"

msgid "Confirm"
msgstr "Confirma"

msgid "Confirm your password"
msgstr "Confirmeu la vostra contrasenya"

msgid "Password"
msgstr "Contrasenya"

msgid "Please enter your password"
msgstr "Introduïu la vostra contrasenya"

msgid "This action needs authentication"
msgstr "Aquesta acció necessita autenticació"

msgid "Wrong password"
msgstr "Contrasenya incorrecta"
35 changes: 35 additions & 0 deletions l10n/cs_CZ.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Translators:
# Joas Schilling, 2024
# Pavel Borecki <[email protected]>, 2024
#
msgid ""
msgstr ""
"Last-Translator: Pavel Borecki <[email protected]>, 2024\n"
"Language-Team: Czech (Czech Republic) (https://app.transifex.com/nextcloud/teams/64236/cs_CZ/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: cs_CZ\n"
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"

#. TRANSLATORS: This is a status message, shown when the system is checking
#. the users password
msgid "Checking password …"
msgstr "Ověřování hesla…"

msgid "Confirm"
msgstr "Potvrdit"

msgid "Confirm your password"
msgstr "Zopakujte zadání hesla"

msgid "Password"
msgstr "Heslo"

msgid "Please enter your password"
msgstr "Zadejte heslo"

msgid "This action needs authentication"
msgstr "Tato akce vyžaduje ověření se"

msgid "Wrong password"
msgstr "Nesprávné heslo"
35 changes: 35 additions & 0 deletions l10n/da.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Translators:
# Joas Schilling, 2024
# Martin Bonde <[email protected]>, 2024
#
msgid ""
msgstr ""
"Last-Translator: Martin Bonde <[email protected]>, 2024\n"
"Language-Team: Danish (https://app.transifex.com/nextcloud/teams/64236/da/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: da\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. TRANSLATORS: This is a status message, shown when the system is checking
#. the users password
msgid "Checking password …"
msgstr "Kontrollerer adgangskoden..."

msgid "Confirm"
msgstr "Bekræft"

msgid "Confirm your password"
msgstr "Bekræft din adgangskode"

msgid "Password"
msgstr "Adgangskode"

msgid "Please enter your password"
msgstr "Indtast venligst dit kodeord"

msgid "This action needs authentication"
msgstr "Denne handling kræver godkendelse"

msgid "Wrong password"
msgstr "forkert Adgangskode"
34 changes: 34 additions & 0 deletions l10n/de.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Translators:
# Joas Schilling, 2024
# Mario Siegmann <[email protected]>, 2024
# Ferdinand Thiessen, 2024
#
msgid ""
msgstr ""
"Last-Translator: Ferdinand Thiessen, 2024\n"
"Language-Team: German (https://app.transifex.com/nextcloud/teams/64236/de/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgid "Checking password …"
msgstr "Prüfe Passwort …"

msgid "Confirm"
msgstr "Bestätigen"

msgid "Confirm your password"
msgstr "Bestätige dein Passwort"

msgid "Password"
msgstr "Passwort"

msgid "Please enter your password"
msgstr "Bitte geben Sie Ihr Passwort ein"

msgid "This action needs authentication"
msgstr "Diese Aktion benötigt eine Passwortbestätigung"

msgid "Wrong password"
msgstr "Falsches Passwort"
36 changes: 36 additions & 0 deletions l10n/de_DE.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# Translators:
# Joas Schilling, 2024
# Mario Siegmann <[email protected]>, 2024
# Mark Ziegler <[email protected]>, 2024
#
msgid ""
msgstr ""
"Last-Translator: Mark Ziegler <[email protected]>, 2024\n"
"Language-Team: German (Germany) (https://app.transifex.com/nextcloud/teams/64236/de_DE/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: de_DE\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. TRANSLATORS: This is a status message, shown when the system is checking
#. the users password
msgid "Checking password …"
msgstr "Passwort prüfen …"

msgid "Confirm"
msgstr "Bestätigen"

msgid "Confirm your password"
msgstr "Bestätigen Sie Ihr Passwort"

msgid "Password"
msgstr "Passwort"

msgid "Please enter your password"
msgstr "Bitte geben Sie Ihr Passwort ein"

msgid "This action needs authentication"
msgstr "Diese Aktion erfordert eine Authentifizierung"

msgid "Wrong password"
msgstr "Falsches Passwort"
34 changes: 34 additions & 0 deletions l10n/en_GB.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Translators:
# Andi Chandler <[email protected]>, 2024
#
msgid ""
msgstr ""
"Last-Translator: Andi Chandler <[email protected]>, 2024\n"
"Language-Team: English (United Kingdom) (https://app.transifex.com/nextcloud/teams/64236/en_GB/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: en_GB\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. TRANSLATORS: This is a status message, shown when the system is checking
#. the users password
msgid "Checking password …"
msgstr "Checking password …"

msgid "Confirm"
msgstr "Confirm"

msgid "Confirm your password"
msgstr "Confirm your password"

msgid "Password"
msgstr "Password"

msgid "Please enter your password"
msgstr "Please enter your password"

msgid "This action needs authentication"
msgstr "This action needs authentication"

msgid "Wrong password"
msgstr "Wrong password"
35 changes: 35 additions & 0 deletions l10n/es.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Translators:
# Joas Schilling, 2024
# Julio C. Ortega, 2024
#
msgid ""
msgstr ""
"Last-Translator: Julio C. Ortega, 2024\n"
"Language-Team: Spanish (https://app.transifex.com/nextcloud/teams/64236/es/)\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language: es\n"
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"

#. TRANSLATORS: This is a status message, shown when the system is checking
#. the users password
msgid "Checking password …"
msgstr "Verificando contraseña …"

msgid "Confirm"
msgstr "Confirmar"

msgid "Confirm your password"
msgstr "Confirme su contraseña"

msgid "Password"
msgstr "Contraseña"

msgid "Please enter your password"
msgstr "Por favor, Introduzca su contraseña"

msgid "This action needs authentication"
msgstr "Esta acción necesita autenticación"

msgid "Wrong password"
msgstr "Contraseña errónea"
Loading

0 comments on commit cdb1c48

Please sign in to comment.